User forums > Using Code::Blocks
[SOLVED] How to suppress a specific warning ?
R1S8K:
Hi,
I want to suppress a warning related to uninitialized variables. I tried to add it to the flags but didn't know how to set it.
This is my screenshot:
Tried it but didn't work. What I'm missing here ?
oBFusCATed:
1. adding it globally it is not the best idea most of the times
2. use the other settings tab and just type the option you want to pass.
R1S8K:
OK, how to type it in option tab ? I tried it now but didn't work, the same warning appears.
BlueHazzard:
Project->Build options->Select your project name on the left->Compiler settings->other compiler options:
Add your flags here
R1S8K:
I know this route, and I added it accordingly. But didn't work.
I put the warning as is:
--- Code: ----Wuninitialized
--- End code ---
Just like that, is there other thing required with the flag ?
Navigation
[0] Message Index
[#] Next page
Go to full version