KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Hiding all Compiler Warnings
PRODUCT: 4D | VERSION: 11 | PLATFORM: Mac & Win
Published On: February 5, 2010

When using the `%W- syntax to hide compiler warnings, where you place the warning will affect whether some or all warnings for the specified number are hiden.

As the methods are compiled, if a warning situation is encountered it will be displayed in the compiler window unless the code to hide the warning has already been encountered.

Here are 2 examples:

COPY ARRAY($myPointer->;$myArray)
  `%W-518.1

When compiled, this code will trigger a warning to be displayed.


  `%W-518.1
COPY ARRAY($myPointer->;$myArray)

When compiled, this code will not trigger a warning to be displayed.

In order to avoid hiding only some of the warnings, place the warning directives in any of the COMPILER_ methods. These methods are compiled first, so putting the warning directives in one of these methods is a convienient way of hiding all warnings for the specified number.

See Also: