Page 1 of 1

Warning Level

Posted: Thu Mar 12, 2020 10:56 am
by Josh
In the Preferences and Compiler Options I can make settings for the 'Warning Level':
  • File > Preferences > Debugger > Choose Warning Level
  • Compiler > Compiler Options > Compile/Run > Use Warning mode
Does this have anything to do with the warning I get with the command CreateGadgetList(0)? I can change all the above settings, but nothing changes.

What do I really set with this?

Re: Warning Level

Posted: Thu Mar 12, 2020 11:06 am
by Derren
I tried with this code

Code: Select all

LoadImage(0, "c:\bild.bmp") ;this file doesn't exist, obviously
This gets either no marking at all (ignore warnings)
Gets a blue-backed "!" next to the line number (blue is dependent on the color settings, it may be yellow or whatever depending on your color scheme)
Gets an error blob next to the line number and the programm halts with an error warning in the "status box" (lower part of the IDE).

CreateGadgetList() is a depracated function and should be removed. This is a different type of warning.

Re: Warning Level

Posted: Thu Mar 12, 2020 11:46 am
by Josh
All right, I was thinking too complicated :D

I used CreateGadgetList() because it is the only function I could think of that opens this warning window.

Thanks