User forums > Help

How To Disable Specific Warnings?

<< < (3/3)

Miguel Gimenez:
You must use -Wno-unused-variable (with the no- prefix) to suppress the message.

BlueHazzard:

--- Quote from: Archibald on August 12, 2016, 11:35:23 am ---That's the compiler log "warning: unused variable 'cnt' [-Wunused-variable]", pretty straightforward :) I want this warning disabled.

--- End quote ---
Can you read? This is not the build log stahta01 are asking for... There is 0 information of what we need...


--- Quote from: Archibald on August 12, 2016, 11:35:23 am ---I have tried to do it via Project/Build options/Compiler Flags (all trees: main, Debug, Release)  (no effect)

--- End quote ---
Have you followed my steps??


--- Quote from: Archibald on August 12, 2016, 11:35:23 am ---Only when I do it via Settings/Global Compiler Settings/Other Settings (works as intended, no more warnings of this type)

--- End quote ---
This has absolutely nothing to do with the compiler, but how codeblocks handles the compiler output...

Navigation

[0] Message Index

[*] Previous page

Go to full version