diff options
author | Michael Widenius <monty@askmonty.org> | 2012-08-15 09:34:18 +0300 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2012-08-15 09:34:18 +0300 |
commit | dd8bd2e4c38a3e052b48ba8704e8a7aa89affd74 (patch) | |
tree | 50638eb913312381ecd04329884f91e27763d3f0 /configure.cmake | |
parent | b886cac7123bc37d055fecd49d9a30ce0c39da73 (diff) | |
download | mariadb-git-dd8bd2e4c38a3e052b48ba8704e8a7aa89affd74.tar.gz |
Fixed compiler warnings
sql/item_subselect.cc:
Added purecov info
sql/sql_select.cc:
Added cast
storage/innobase/handler/ha_innodb.cc:
Added cast
storage/xtradb/btr/btr0btr.c:
Added buf_block_get_frame_fast() to avoid compiler warning
storage/xtradb/handler/ha_innodb.cc:
Added cast
storage/xtradb/include/buf0buf.h:
Innodb has buf_block_get_frame(block) defined as (block)->frame.
Didn't want to do a big change to break xtradb as it may use block_get_frame() differently, so I mad this quick hack to patch one compiler warning.
Diffstat (limited to 'configure.cmake')
-rw-r--r-- | configure.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.cmake b/configure.cmake index 1fb5fc920f6..05fa80e852f 100644 --- a/configure.cmake +++ b/configure.cmake @@ -56,10 +56,10 @@ ENDIF() # Always enable -Wall for gnu C/C++ IF(CMAKE_COMPILER_IS_GNUCXX) - SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-unused-parameter") + SET(CMAKE_CXX_FLAGS "-Wall ${CMAKE_CXX_FLAGS} -Wno-unused-parameter") ENDIF() IF(CMAKE_COMPILER_IS_GNUCC) - SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall") + SET(CMAKE_C_FLAGS "-Wall ${CMAKE_C_FLAGS}") ENDIF() |