Informix Error -4610: Warnings found in 4GL module.
Cause and resolution
Warnings found in 4GL module.
You have compiled with the -ansi command line option, which asks that you be warned about any use of SQL that does not comply with ANSI standard SQL. The compiler did find one or more uses of Informix extensions to standard SQL. Edit the module.err file to see the warning messages.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4610 fires when compiling with the -ansi command-line option, and the compiler finds one or
more uses of Informix extensions to standard SQL — per the official guidance, -ansi asks to
be warned about any non-ANSI-compliant SQL usage.
- Non-ANSI-compliant SQL (an Informix extension) used while compiling with
-ansi, per the official guidance — the direct, only cause.
Solutions / Resolution
- Edit the module's
.errfile to see the specific warning messages, per the official guidance. - Replace the flagged Informix extensions with ANSI-standard SQL equivalents, if ANSI compliance is required.
Examples
Checking the .err file for ANSI warnings
$ cat order_entry.err
Diagnostic Checks
- Review the module's
.errfile for the specific non-ANSI SQL usages flagged, and replace them if compliance is required.
Related Errors / Related Topics
- -4479 — "Warning: non-ANSI comment indicator. Use "--" for ANSI compatibility." A related ANSI-compliance warning, about comment syntax specifically rather than SQL extensions generally.
Non-ANSI SQL usage (an Informix extension) was found while compiling with -ansi — check the
module's .err file for details.