Reputation: 11
does someone know how I enable the compile warnings in netbeans 8.2 and cygwin compiler (for c++)?
For example when I write
for(int i=0; i<v.size(); ++i) ....
I dont get a "signed/unsigned-comparison-warning".
I dont find anything in the settings. The compile-command in the box at the bottem is
g++ -c -g -MMD -MP -MF "build/Debug/Cygwin-Windows/main.o.d" -o build/Debug/Cygwin-Windows/main.o main.cpp
I guess there should be the paramter "-w" for warnings..
can someone help?
Upvotes: 1
Views: 840
Reputation: 56557
You should go to File/Project Properties
then select Build/C++ Compiler
. You can then set the warning levels there. See the screenshot:
If the Warning Level doesn't do it, then just add -Wall -Wextra -Wpedantic -Weffc++
to Compilation Line/Additional Options in the same dialog window.
Upvotes: 1