An option to disable compilers warning

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

An option to disable compilers warning

Post by luis »

When the compiler pops out a warning we have to dismiss the window clicking on OK.
This is fine for the first 27 times. Then I would like to eradicate it using an hammer.
If the warning it's about something that's ok for you you should be able to disable it, better if only that one and better yet if only for a segment of your code.

For more info and to see how I misunderstood this initially because I was SO sure an option for that was already in place see this sad monologue -> http://www.purebasic.fr/english/viewtop ... 13&t=53144 that went on for half of the latest beta cycle.

Thank you
"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: An option to disable compilers warning

Post by skywalk »

Yeah, this is super annoying.
The Debugger Error Log shows this stuff anyway.
I say "Run Silent, Run Deep". :wink:
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: An option to disable compilers warning

Post by Danilo »

luis wrote:When the compiler pops out a warning we have to dismiss the window clicking on OK.
The compiler does not display message boxes, it is just a console program and outputs to console.
So it must be the IDE that gives the message boxes instead of just writing to the IDE output window like all IDE's.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: An option to disable compilers warning

Post by netmaestro »

I agree with this request, a line in the log is all I want to see. Or at least a prefs option to suppress boxed warnings while the log would always display a line with the warning.
BERESHEIT
User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: An option to disable compilers warning

Post by luis »

Danilo wrote: The compiler does not display message boxes, it is just a console program and outputs to console.
So it must be the IDE that gives the message boxes instead of just writing to the IDE output window like all IDE's.
Yes, it's actually the IDE, I used the term compiler admittedly in a improper way to make clear it was not a debugger error (since Freak pointed that out to me in the other thread I linked). But you are of course right.

Anyway for now I've launched the IDE from a debugger monitoring the process for an access to the string "Compiler Warnings", I've located the call showing the window and ... *ZAP*.

Frankly it would be better if the window wasn't there at all, as some of you said a "line in the log" it's all that's needed.
"Have you tried turning it off and on again ?"
A little PureBasic review
Post Reply