News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Remove -Weverything

Started by ordak, February 11, 2020, 02:48:12 PM

Previous topic - Next topic

ordak

Hi,

I removed -Weverything from Setting>Compiler Setting>Compiler Flags also from Project build options>Compiler flags . But still I get this in Build log:


-------------- Clean: Release in Temp (compiler: LLVM Clang Compiler 9 GTK Library)---------------

Cleaned "Temp - Release"

-------------- Build: Release in Temp (compiler: LLVM Clang Compiler 9 GTK Library)---------------

clang -pedantic -Weverything -Wall -std=c11 -pedantic -Wall -std=c11 -m64 -pedantic -Wall -std=c11 -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -c /home/mehdi/Documents/Code_Blocks_Projects/Temp/Main.c -o obj/Release/Main.o


Why -Weverything is still present , how can I remove this ?
Code::Blocks SVN
OS : Ubuntu LTS

Miguel Gimenez

Inside Build options you have at least two sets of settings, one for the project and one per target. Review the Release and Temp settings.

ordak

Quote from: Miguel Gimenez on February 11, 2020, 03:05:33 PM
Inside Build options you have at least two sets of settings, one for the project and one per target. Review the Release and Temp settings.

I disabled both , and now -Weverything is not called.
Code::Blocks SVN
OS : Ubuntu LTS

ordak

Is this enough for adding  -Wextra :

Setting>Compiler setting>Other compiler options>  add  -Wextra
Code::Blocks SVN
OS : Ubuntu LTS

Miguel Gimenez

If you do that the setting will be used for all your projects using that compiler, even old ones. Changing Build options is usually preferred, because it only applies to the current project.