Author Topic: Remove -Weverything  (Read 149 times)

Offline ordak

  • Multiple posting newcomer
  • *
  • Posts: 100
    • My Site
Remove -Weverything
« on: February 11, 2020, 02:48:12 pm »
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:

Code: [Select]
-------------- 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 11925
OS : Ubuntu LTS

Offline Miguel Gimenez

  • Regular
  • ***
  • Posts: 409
Re: Remove -Weverything
« Reply #1 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.

Offline ordak

  • Multiple posting newcomer
  • *
  • Posts: 100
    • My Site
Re: Remove -Weverything
« Reply #2 on: February 11, 2020, 03:12:21 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 11925
OS : Ubuntu LTS

Offline ordak

  • Multiple posting newcomer
  • *
  • Posts: 100
    • My Site
Re: Remove -Weverything
« Reply #3 on: February 11, 2020, 03:22:33 pm »
Is this enough for adding  -Wextra :

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

Offline Miguel Gimenez

  • Regular
  • ***
  • Posts: 409
Re: Remove -Weverything
« Reply #4 on: February 11, 2020, 04:07:14 pm »
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.