SourceForge has been redesigned. Learn more.
Close

#265 compiling errors

development
closed-fixed
5
2003-05-13
2003-05-05
Anonymous
No

NEdit 5.4DEV
May 4, 2003

Built on: IRIX, MIPS, SGI MipsPro
Built at: May 5 2003, 10:06:19
With Motif: 1.2.4 [@(#)OSF/Motif Version 1.2.4]
Running Motif: 1.2 [unknown]
Server: Mandrake Linux (XFree86 4.2.1, patch
level 3mdk) 40201000
Visual: 24-bit TrueColor (ID 0x21, Default)
Locale: C

---------------------------------------------------------
The following are the compiling errors I found. The
first three might cause some problems.

cc-1551 cc: WARNING File = file.c, Line = 840
The variable "fileLen" is used before its value is set.

&& fileLen != 0

cc-1551 cc: WARNING File = windowTitle.c, Line = 1118
The variable "radioHeight" is used before its value
is set.

XmNheight, radioHeight,

cc-1185 cc: WARNING File = interpret.c, Line = 708
An enumerated type is mixed with another type.

s->type = type;

cc-1552 cc: WARNING File = tags.c, Line = 1120
The variable "FileList" is set but never used.

tagFile *FileList;

cc-1552 cc: WARNING File = tags.c, Line = 1730
The variable "found" is set but never used.

int dummy1, found = 0;

cc-1552 cc: WARNING File = macro.c, Line = 4785
The variable "pixel" is set but never used.

Pixel pixel;

cc-1552 cc: WARNING File = textDisp.c, Line = 3217
The variable "visLineNum" is set but never used.

int visLineNum = 0, nLines = 0, i;

cc-1552 cc: WARNING File = rangeset.c, Line = 1025
The variable "refresh" is set but never used.

int refresh = 0;

cc-1174 cc: WARNING File = macro.c, Line = 1482
The variable "status" was declared but never referenced.

int i, nChars, nParams, length, nameLength, status;

Discussion

  • Eddy De Greef

    Eddy De Greef - 2003-05-05

    Logged In: YES
    user_id=73597

    The first two are indeed bugs. The rest of them are
    harmless, but I'll clean them up anyway. (I wish I had such
    a smart compiler.)
    Thanks.

     
  • Eddy De Greef

    Eddy De Greef - 2003-05-05
    • labels: --> Build/Install
    • milestone: --> development
    • assigned_to: nobody --> edg
     
  • Thorsten Haude

    Thorsten Haude - 2003-05-05

    Logged In: YES
    user_id=119143

    >The variable "fileLen" is used before its value is set.

    WTF?? Now I'm *really* angry at myself.

     
  • Nobody/Anonymous

    Logged In: NO

    I tried the latest codes a few minutes ago. There is still
    some warnings (probably I didn't find them this
    morning--sorry). I hope they will be a little helpful when
    you cleanup the codes.

    By the way, Thanks a lot for working on the amazing
    editor--NEdit.
    --------------------------------------------------------------

    cc-1185 cc: WARNING File = help.c, Line = 762
    An enumerated type is mixed with another type.

    setHelpWinTitle(appShell, topic);
    ^

    cc-1185 cc: WARNING File = help.c, Line = 1217
    An enumerated type is mixed with another type.

    setHelpWinTitle(HelpWindows[newTopic], newTopic);
    ^

    cc-1552 cc: WARNING File = regularExp.c, Line = 2603
    The variable "Cross_Regex_Backref" is set but never used.

    static regexp *Cross_Regex_Backref;
    ^

    cc-1552 cc: WARNING File = regularExp.c, Line = 2607
    The variable "Prev_Is_Delim" is set but never used.

    static int Prev_Is_Delim;
    ^

    cc-1552 cc: WARNING File = regularExp.c, Line = 2608
    The variable "Succ_Is_Delim" is set but never used.

    static int Succ_Is_Delim;
    ^

    cc-1185 cc: WARNING File = parse.y, Line = 475
    An enumerated type is mixed with another type.

    static DataValue value = {0, {0}};
    ^

    cc-1552 cc: WARNING File = rangeset.c, Line = 1025
    The variable "refresh" is set but never used.

    int refresh = 0;
    ^

     
  • Eddy De Greef

    Eddy De Greef - 2003-05-07

    Logged In: YES
    user_id=73597

    Thanks again. The warnings should now be gone in CVS.

     
  • Nobody/Anonymous

    Logged In: NO

    The last three warnings on IRIX6.4:

    cc -O -DSGI -DNO_XMIM -DREPLACE_SCOPE -c help.c -o help.o
    cc-1185 cc: WARNING File = help.c, Line = 776
    An enumerated type is mixed with another type.

    changeWindowTopic(existingTopic, newTopic);
    ^

    cc-1185 cc: WARNING File = help.c, Line = 972
    An enumerated type is mixed with another type.

    link_topic);
    ^

    cc-1185 cc: WARNING File = help.c, Line = 975
    An enumerated type is mixed with another type.

    changeWindowTopic(topic, link_topic);
    ^

     
  • Eddy De Greef

    Eddy De Greef - 2003-05-07

    Logged In: YES
    user_id=73597

    Thanks, but fixing those would trigger a cascade of other
    warnings (they are already triggered by the earlier
    changes) and I don't think it is worth the effort going
    through another few rounds of fixing and checking. These
    warnings are really harmless.

     
  • Eddy De Greef

    Eddy De Greef - 2003-05-13
    • status: open --> closed-fixed
     

Log in to post a comment.