Skip to content

Commit

Permalink
Makefile: add some new warnings to CXXFLAGS
Browse files Browse the repository at this point in the history
Signed-off-by: Colin McCabe <[email protected]>
  • Loading branch information
cmccabe committed Apr 22, 2011
1 parent 474be65 commit 4b547cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
4 changes: 0 additions & 4 deletions do_autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ do_autogen.sh: make a ceph build by running autogen, etc.
-d <level> debug build
level 0: no debug
level 1: -g
level 2: -Wall
level 3: -Wextra
level 4: even more...
-P profiling build
Expand Down Expand Up @@ -58,9 +57,6 @@ fi
if [ "${debug_level}" -ge 1 ]; then
CFLAGS="${CFLAGS} -g"
fi
if [ "${debug_level}" -ge 2 ]; then
CFLAGS="${CFLAGS} -Wall -Wvolatile-register-var"
fi
if [ "${debug_level}" -ge 3 ]; then
CFLAGS="${CFLAGS} -Wextra \
-Wno-missing-field-initializers -Wno-missing-declarations"
Expand Down
11 changes: 6 additions & 5 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -478,16 +478,17 @@ CLEANFILES += \

##

AM_COMMON_FLAGS = -Wall -D__CEPH__ -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE -rdynamic \
-Wtype-limits -Wignored-qualifiers

AM_CFLAGS = $(AM_COMMON_FLAGS)
AM_CXXFLAGS = $(AM_COMMON_FLAGS) -Wnon-virtual-dtor -Wno-invalid-offsetof
AM_LDFLAGS = -Wl,--as-needed

AM_CXXFLAGS = -Wall -D__CEPH__ -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE -rdynamic -Wnon-virtual-dtor
if USE_BOOST_SPIRIT_OLD_HDR
AM_CXXFLAGS += -DUSE_BOOST_SPIRIT_OLD_HDR
endif

AM_CFLAGS = -Wall -D__CEPH__ -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE -rdynamic
AM_CXXFLAGS += -Wno-invalid-offsetof
AM_LDFLAGS = -Wl,--as-needed

if WITH_LIBATOMIC
AM_LDFLAGS += -latomic_ops
endif
Expand Down

0 comments on commit 4b547cb

Please sign in to comment.