extended_errorcheck

Controls the issuing of warning messages for possible unintended logical errors.

Syntax
  #pragma extended_errorcheck on | off | reset
  
  
Remarks

If you enable this pragma, the C++ compiler generates a warning message for the possible unintended logical errors.

It also issues a warning message when it encounters a delete operator for a class or structure that has not been defined yet. The following listing shows an example.

Listing: Attempting to delete an undefined structure

#pragma extended_errorcheck on

struct X;

int func(X *xp)

{

     delete xp;    // Warning: deleting incomplete type X

}