Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2002:
[Freeciv-Dev] (PR#2376) Warnings of icc
Home

[Freeciv-Dev] (PR#2376) Warnings of icc

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients:;
Subject: [Freeciv-Dev] (PR#2376) Warnings of icc
From: "Raimar Falke via RT" <rt@xxxxxxxxxxxxxx>
Date: Thu, 21 Nov 2002 10:58:44 -0800
Reply-to: rt@xxxxxxxxxxxxxx


Attached are the warnings of the new (from today) intel compiler:
Intel(R) C++ Compiler for 32-bit applications, Version 7.0   Build 20021021Z

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Python is executable pseudocode. Perl is executable line noise"
    -- Bruce Eckel

connection.c(82): warning #186: pointless comparison of unsigned integer with 
zero
    assert (lvl >= 0 && lvl < ALLOW_NUM);
    ^

government.c(99): warning #186: pointless comparison of unsigned integer with 
zero
    assert(flag>=G_FIRST_FLAG && flag<G_LAST_FLAG);
    ^

government.c(127): warning #186: pointless comparison of unsigned integer with 
zero
    assert(hint>=G_FIRST_HINT && hint<G_LAST_HINT);
    ^

inputfile.c(556): warning #186: pointless comparison of unsigned integer with 
zero
    assert(type>=INF_TOK_FIRST && type<INF_TOK_LAST);
    ^

shared.c(1148): warning #186: pointless comparison of unsigned integer with zero
    assert(result >= 0 && result < ARRAY_SIZE(descriptions));
    ^

tech.c(269): warning #186: pointless comparison of unsigned integer with zero
    assert(flag>=0 && flag<TF_LAST);
    ^

unittype.c(242): warning #186: pointless comparison of unsigned integer with 
zero
    if ((id >= 0) && (id < UCL_LAST)) {
            ^

sernet.c(702): warning #167: argument of type "int *" is incompatible with 
parameter of type "socklen_t={__socklen_t={unsigned int}} *restrict"
    if ((new_sock=accept(sockfd, (struct sockaddr *) &fromend, &fromlen)) == 
-1) {
                                                               ^

dialogs.c(1607): warning #556: a value of type "void *" cannot be assigned to 
an entity of type "void (*)(gpointer)"
      buttons[i].callback = va_arg(args, void *);
                          ^

mapview.c(1177): warning #188: enumerated type mixed with another type
        put_one_tile(x1, y1, D_T_L);
                             ^

mapview.c(1185): warning #188: enumerated type mixed with another type
        put_one_tile(x1, y1, D_T_R);
                             ^


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#2376) Warnings of icc, Raimar Falke via RT <=