In this section:
This error code is generated when Insure++ encounters a call to the iic_warning interface function.
|
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();
} |
[warn.c:8] **INSURE_WARNING** Use of archaic_function is deprecated. >> archaic_function(); |
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.