unrecognized compiler flags
Compiling Kea with the GNU compiler (g++
) mentions an unrecognized flag because it's not compatible with said compiler:
cc1plus: note: unrecognized command-line option ‘-Wno-unused-private-field’ may have been intended to silence earlier diagnostics
This flag is added in a Makefile. There are a few others like this.
Some include it inside the scope of if USE_GXX
. I would instead remove these flags from Makefiles. Including a flag only for a library is arbitrary. If it should be included, it should either be for the entire repo, or not at all.
People who want to enable custom flags can use the CXXFLAGS
environment variable which should be set before running ./configure
.
export CXXFLAGS="-Wno-unused-private-field"
./configure