Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Ross Asay — — source: Informix-list mailing list archive (1991-1998)
tom dorgan wrote:
>
> Hello all.
>
> We just updated to esqlc Version 5.08.UC1. I build my executable
> and get the following (new) warnings:
> esql -DTHREADS -D_REENTRANT -g -c -I../libsw
> -I/export/home/rf/pos/dvl/src/libsw
> -I/usr/informix/incl/esql swtmap.ec
> esqlc: "swtmap.ec", line 135: Warning -33208: Runtime error is possible
> because
> size of 'dtelnetport' is unknown.
> esqlc: "swtmap.ec", line 135: Warning -33208: Runtime error is possible
> because
> size of 'dmiconport' is unknown.
> 2 warning(s)
>
> The generated code looks like this:
> 378 #line 96 "swtmap.ec"
> 379 char miconport[PORT_SZ+1];
> 380 /*
> 381 * $char dmiconport[PORT_SZ+1];
> 382 */
> 383 #line 97 "swtmap.ec"
> 384 char dmiconport[PORT_SZ+1];
>
> PORT_SZ is #defined in an included file and it compiles and lints
> (via gcc) without errors.
>
> This is a bogus msg, no?
>
> thanks in advance,
> tom dorgan.
Not quite. That warning comes from the ESQL/C preprocessor,
which doesn't understand compiler directives (i.e. '#define').
You can avoid the warning by using '$define'. And you'll have
to change the '#include' in your .ec file to '$include'.
Ross
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.