- Added GCC_PRINTF attribute to several funcs where it makes sense

- change some constants from double to float, to avoid "loss of precision due to implicit conversion" warnings
- removed duplicate prototypes for some funcs
- fixed some "increases required alignment of target type" warnings

svn-id: r42009
This commit is contained in:
Max Horn 2009-07-01 20:51:04 +00:00
parent 62acda5fdb
commit a6b57dc3a9
26 changed files with 52 additions and 74 deletions

View file

@ -26,6 +26,13 @@ CXXFLAGS+= -Wno-long-long -Wno-multichar -Wno-unknown-pragmas -Wno-reorder
# Enable even more warnings...
CXXFLAGS+= -Wpointer-arith -Wcast-qual -Wcast-align
CXXFLAGS+= -Wshadow -Wimplicit -Wnon-virtual-dtor -Wwrite-strings
# TODO: Consider using -Wold-style-cast at some point
# CXXFLAGS+= -Wno-sign-compare
#CXXFLAGS+= -Wextra
CXXFLAGS+= -Wmissing-format-attribute
CXXFLAGS+= -Wredundant-decls
CXXFLAGS+= -Wconversion
#CXXFLAGS+= -Wshorten-64-to-32
# Disable RTTI and exceptions, and enabled checking of pointers returned by "new"
CXXFLAGS+= -fno-rtti -fno-exceptions -fcheck-new