Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
Impala 2.6.0
-
None
Description
Currently it seems we're only using -Werror with debug builds.
The problem is that a number of GCC warnings get issued by the analysis/transformation at -O2 or higher. So there could be warnings in our release builds that we're simply ignoring.
We should consider turning -Werror on in release builds. Perhaps have another "static-analysis" target that does something like this (and use it in GVMs and recommend before submitting code reviews):
g++ ${CXX_FLAGS_RELEASE} -fsyntax-only -Werror -Wfatal-errors ...