Skip to content

Commit

Permalink
Refs #3868. Ignore warnings about unused return values.
Browse files Browse the repository at this point in the history
  • Loading branch information
martyngigg committed Nov 14, 2011
1 parent ed5c3fd commit ebbd844
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Code/Mantid/Build/CMake/GNUSetup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ set( GNUFLAGS "-Wall -Wextra -Wconversion -Winit-self -Wpointer-arith -Wcast-qua
# we can't do anything about
# -Wno-deprecated: Do not warn about use of deprecated headers.
# -Wno-write-strings: Do not warn about deprecated conversions of char*->const char*
set( GNUFLAGS "${GNUFLAGS} -Wno-deprecated -Wno-write-strings")
# -Wno-unused-result: Do not warn about unused return values in some C functions
set( GNUFLAGS "${GNUFLAGS} -Wno-deprecated -Wno-write-strings -Wno-unused-result")

# Set the options fo gcc and g++
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GNUFLAGS}" )
Expand Down

0 comments on commit ebbd844

Please sign in to comment.