In this section:

Overview

This error code is generated when Insure++ encounters a call to the iic_warning interface function.

CodeDescriptionEnabledReportedPlatform
INSURE_WARNING

Errors from iic_warning calls

(error)CompilationWindows/Unix


Example

The following code contains a call to a function called archaic_function, the use of which is to be discouraged:

/*
 * File: warn.c
 */
#include <stdio.h>

main()
{
	archaic_function();
	exit(0);
}

The following code demonstrates how to make an interface to the archaic_function and use the iic_warning capability:

/*
 * File: warn_i.c
 */

void archaic_function(void)

{
	iic_warning(
	"Use of archaic_function is deprecated.");
	archaic_function();
}

Diagnosis During Compilation

[warn.c:8] **INSURE_WARNING**
Use of archaic_function is deprecated.
>>		 archaic_function();
  • Line 1: Source file and line at which the problem was detected.
  • Line 2: Description of the problem and the expression that is in error.

Repair

This error category is suppressed by default, so you must unsuppress INSURE_WARNING before compiling code which uses it.

There are many uses for iic_warning and the INSURE_WARNING error, so no specific suggestions for error correction are appropriate. Hopefully, the messages displayed by the system will provide sufficient assistance.

  • No labels