Revert my previous fix 28763fa020
and suppress gcc false positive warnings.
This commit is contained in:
parent
28763fa020
commit
5c2ed8450e
2
Makefile
2
Makefile
|
@ -73,7 +73,7 @@ ifdef COMSPEC
|
||||||
endif # COMSPEC
|
endif # COMSPEC
|
||||||
|
|
||||||
ifndef CXXFLAGS
|
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
|
endif
|
||||||
|
|
||||||
ifeq ($(HAVE_RULES),yes)
|
ifeq ($(HAVE_RULES),yes)
|
||||||
|
|
|
@ -319,7 +319,7 @@ Library::Error Library::load(const tinyxml2::XMLDocument &doc)
|
||||||
const char * const name = node->Attribute("name");
|
const char * const name = node->Attribute("name");
|
||||||
if (!name)
|
if (!name)
|
||||||
return Error(MISSING_ATTRIBUTE, "name");
|
return Error(MISSING_ATTRIBUTE, "name");
|
||||||
PodType podType = {0,0};
|
PodType podType = {0};
|
||||||
const char * const size = node->Attribute("sizeof");
|
const char * const size = node->Attribute("sizeof");
|
||||||
if (size)
|
if (size)
|
||||||
podType.size = atoi(size);
|
podType.size = atoi(size);
|
||||||
|
|
|
@ -342,6 +342,8 @@ int main(int argc, char **argv)
|
||||||
"-Wshadow "
|
"-Wshadow "
|
||||||
// "-Wsign-conversion "
|
// "-Wsign-conversion "
|
||||||
"-Wsign-promo "
|
"-Wsign-promo "
|
||||||
|
"-Wno-missing-field-initializers "
|
||||||
|
"-Wno-missing-braces "
|
||||||
// "-Wunreachable-code "
|
// "-Wunreachable-code "
|
||||||
"-Wno-sign-compare " // danmar: I don't like this warning, it's very rarelly a bug
|
"-Wno-sign-compare " // danmar: I don't like this warning, it's very rarelly a bug
|
||||||
"$(CPPCHK_GLIBCXX_DEBUG) "
|
"$(CPPCHK_GLIBCXX_DEBUG) "
|
||||||
|
|
Loading…
Reference in New Issue