lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LYNX-DEV Compile error Alpha VMS 7.1 DEC C V5.6-003


From: John Nowlin
Subject: LYNX-DEV Compile error Alpha VMS 7.1 DEC C V5.6-003
Date: Wed, 13 Aug 1997 16:29:55 -0400

I was trying to find the Archive to search for this but was unsuccesful
in finding the archive.  I received the following error on our Alpha...

.LYNX2-7.SRC]LYUTILS.C;1
      4   28214                     *dot = '_';
      4   28215                     j = strlen(fname);
      4   28216                     fname[j+1] = '\0';
      4   28217                     while (j > 39)
      4   28218                          fname[j--] = fname[j];
                .........................1
%CC-W-UNDEFVARFETCH, (1) In this statement, the expression
"fname[j--]=fname[j]"
 modifies "j", and fetches its value in a computatio
n that is not used to produce the modified value without an intervening
sequence
 point.  This behavior is undefined.

      4   28219                     fname[j] = '.';

I have very little C experience.  so i changed LYUtils.c to look like
this...  is there something else I should have done to correct this
problem?

$ diff lyutils.c/merged
************
File .LYNX2-7.SRC]LYUTILS.C;2
 1544                            {
 1545                            j--;
 1546                            fname[j] = fname[j+1];
 1547                            }
 1548                       fname[j] = '.';
******
File .LYNX2-7.SRC]LYUTILS.C;1
 1544                            fname[j--] = fname[j];
 1545                       fname[j] = '.';
************

john    www.ccla.lib.fl.us/~john
college center for library automation

;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]