ONWARNING

attribute := expression : ONWARNING(code, action) ;

attributeThe name of the Attribute.
expressionThe definition of the attribute.
codeThe number displayed in the "Code" column of the ECL IDE's Syntax Errors toolbox.
actionOne of these actions: ignore, error, or warning.

The ONWARNING service allows you to specify how to handle specific warnings for a given attribute. You may have it treated as a warning, promote it to an error, or ignore it. Useful warnings can get lost in a sea of less-useful ones. This feature allows you to get rid of the "clutter."

This service overrides any global warning handling specified by #ONWARNING.

Example:

rec := { STRING x } : ONWARNING(1041, ignore);
     //ignore "Record doesn't have an explicit maximum record size" warning

See Also: #ONWARNING