CXXFLAGS: remove -Winline (ticket #7693)
The debug build (with -Winline) has no optimizations and when setting optimizations for a release builds, CXXFLAGS are overridden. So we either do a non-optimized debug build (where no inlining takes place which makes -Winline redundant) or do a release build without -Warning flags which means we would never see -O2 and -Winline together.
This commit is contained in:
parent
e5ee61aed7
commit
032d2e5cd1
2
Makefile
2
Makefile
|
@ -80,7 +80,7 @@ ifeq ($(CXX), clang++)
|
||||||
CPPCHK_GLIBCXX_DEBUG=
|
CPPCHK_GLIBCXX_DEBUG=
|
||||||
endif
|
endif
|
||||||
ifndef CXXFLAGS
|
ifndef CXXFLAGS
|
||||||
CXXFLAGS=-include lib/cxx11emu.h -pedantic -Wall -Wextra -Wabi -Wcast-qual -Wfloat-equal -Winline -Wmissing-declarations -Wmissing-format-attribute -Wno-long-long -Wpacked -Wredundant-decls -Wshadow -Wno-missing-field-initializers -Wno-missing-braces -Wno-sign-compare -Wno-multichar $(CPPCHK_GLIBCXX_DEBUG) -g
|
CXXFLAGS=-include lib/cxx11emu.h -pedantic -Wall -Wextra -Wabi -Wcast-qual -Wfloat-equal -Wmissing-declarations -Wmissing-format-attribute -Wno-long-long -Wpacked -Wredundant-decls -Wshadow -Wno-missing-field-initializers -Wno-missing-braces -Wno-sign-compare -Wno-multichar $(CPPCHK_GLIBCXX_DEBUG) -g
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CXX), g++)
|
ifeq ($(CXX), g++)
|
||||||
|
|
|
@ -296,7 +296,6 @@ int main(int argc, char **argv)
|
||||||
"-Wcast-qual "
|
"-Wcast-qual "
|
||||||
// "-Wconversion " // danmar: gives fp. for instance: unsigned int sizeof_pointer = sizeof(void *);
|
// "-Wconversion " // danmar: gives fp. for instance: unsigned int sizeof_pointer = sizeof(void *);
|
||||||
"-Wfloat-equal "
|
"-Wfloat-equal "
|
||||||
"-Winline "
|
|
||||||
// "-Wlogical-op "
|
// "-Wlogical-op "
|
||||||
"-Wmissing-declarations "
|
"-Wmissing-declarations "
|
||||||
"-Wmissing-format-attribute "
|
"-Wmissing-format-attribute "
|
||||||
|
|
Loading…
Reference in New Issue