libwww: HTGopher.c

while compiling the libwww that comes with amaya-2.0a on Digital UNIX
using the Digital compiler,  I got:

CC=[/usr/bin/cc -std1 -DHAVE_CONFIG_H -I. -I../../../../../libwww/Library/src
-I../.. -I/usr/local/include -DW3C_ICONS="/usr/local/share/w3c-libwww" -O4
-Wp,-MD -c ../../../../../libwww/Library/src/HTGopher.c]
cc: Warning: ../../../../../libwww/Library/src/HTGopher.c, line 345: In this
statement, the expression "start=start?++start:line" modifies the variable
"start" more than once without an intervening sequence point.  This behavior
is undefined.
        start = start ? ++start : line;
--------^
cc: Warning: ../../../../../libwww/Library/src/HTGopher.c, line 351: In this
statement, the expression "start=start?++start:line" modifies the variable
"start" more than once without an intervening sequence point.  This behavior
is undefined.
        start = start ? ++start : line;
--------^
cc: Warning: ../../../../../libwww/Library/src/HTGopher.c, line 404: In this
statement, the expression "start=start?++start:line" modifies the variable
"start" more than once without an intervening sequence point.  This behavior
is undefined.
        start = start ? ++start : line;
--------^


"start = start ? ++start : line;" looks pretty dodgy to me...

sometimes a good compiler can save a lot of headaches...

Rob Urban

Received on Wednesday, 2 June 1999 22:06:50 UTC