Revert my previous fix 28763fa020 and suppress gcc false positive warnings.

This commit is contained in:
orbitcowboy 2014-06-13 15:46:43 +02:00
parent 28763fa020
commit 5c2ed8450e
3 changed files with 4 additions and 2 deletions

View File

@ -73,7 +73,7 @@ ifdef COMSPEC
endif # COMSPEC
ifndef CXXFLAGS
CXXFLAGS=-include lib/cxx11emu.h -pedantic -Wall -Wextra -Wabi -Wcast-qual -Wconversion -Wfloat-equal -Winline -Wmissing-declarations -Wmissing-format-attribute -Wno-long-long -Woverloaded-virtual -Wpacked -Wredundant-decls -Wshadow -Wsign-promo -Wno-sign-compare $(CPPCHK_GLIBCXX_DEBUG) -g
CXXFLAGS=-include lib/cxx11emu.h -pedantic -Wall -Wextra -Wabi -Wcast-qual -Wconversion -Wfloat-equal -Winline -Wmissing-declarations -Wmissing-format-attribute -Wno-long-long -Woverloaded-virtual -Wpacked -Wredundant-decls -Wshadow -Wsign-promo -Wno-missing-field-initializers -Wno-missing-braces -Wno-sign-compare $(CPPCHK_GLIBCXX_DEBUG) -g
endif
ifeq ($(HAVE_RULES),yes)

View File

@ -319,7 +319,7 @@ Library::Error Library::load(const tinyxml2::XMLDocument &doc)
const char * const name = node->Attribute("name");
if (!name)
return Error(MISSING_ATTRIBUTE, "name");
PodType podType = {0,0};
PodType podType = {0};
const char * const size = node->Attribute("sizeof");
if (size)
podType.size = atoi(size);

View File

@ -342,6 +342,8 @@ int main(int argc, char **argv)
"-Wshadow "
// "-Wsign-conversion "
"-Wsign-promo "
"-Wno-missing-field-initializers "
"-Wno-missing-braces "
// "-Wunreachable-code "
"-Wno-sign-compare " // danmar: I don't like this warning, it's very rarelly a bug
"$(CPPCHK_GLIBCXX_DEBUG) "