mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +01:00
Make the -Wno-unused-result problem go away. Refs #2850. [t:2850]
git-svn-id: file:///svn/toku/tokudb@22720 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
65926c2164
commit
74b98182ef
1 changed files with 2 additions and 1 deletions
|
@ -100,10 +100,11 @@ endif
|
|||
|
||||
# -Wno-deprecated is needed on gcc 4.4.{1,2} to make the #ident complaints go away.
|
||||
# -Wno-strict-aliasing is needed on gcc 4.4.{1,2} to make certain gratuitous warnings go away.
|
||||
# -Wno-unused-result is needed on gcc 4.4.1 to make warnings about ignoring the results of certain system calls go away.
|
||||
ifeq ($(GCCVERSION),4.4.2)
|
||||
GCC_VERSION_SPECIFIC = -Wno-deprecated
|
||||
else ifeq ($(GCCVERSION),4.4.1)
|
||||
GCC_VERSION_SPECIFIC = -Wno-deprecated
|
||||
GCC_VERSION_SPECIFIC = -Wno-deprecated -Wno-unused-result
|
||||
endif
|
||||
|
||||
WALL = $(GCC_VERSION_SPECIFIC) -Wall -Wextra -Wcast-align -Wbad-function-cast -Wno-missing-noreturn -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
|
||||
|
|
Loading…
Add table
Reference in a new issue