Intel 9.0 compiler warnings

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Intel 9.0 compiler warnings

Miguel Angel Latorre Díaz
Just for the records.
I just compiled sqlite 3.2.8 with a new compiler (Intel 9.0) and gives these
warnings (among many others):


attach.c
.\Sqlite\v3\attach.c(142): remark #1599: declaration hides variable "i"
(declared at line 34)
      int i = db->nDb - 1;

date.c
.\Sqlite\v3\date.c(506): remark #1572: floating-point equality and
inequality comparisons are unreliable
                   && (n=r)==r && n>=0 && r<7 ){
                             ^
.\Sqlite\v3\date.c(611): remark #1572: floating-point equality and
inequality comparisons are unreliable
          if( y!=r ){
                 ^
.\Sqlite\v3\date.c(819): remark #1599: declaration hides variable "n"
(declared at line 756)
            int n;             /* Number of days since 1st day of year */
                ^
delete.c
.\Sqlite\v3\delete.c(206): remark #1599: declaration hides variable "addr"
(declared at line 89)
        int addr;
            ^
expr.c
.\Sqlite\v3\expr.c(1370): remark #1599: declaration hides variable "i"
(declared at line 1350)
              int i;
                  ^
.\Sqlite\v3\expr.c(1521): remark #1599: declaration hides variable "op"
(declared at line 1446)
        int aff, op;
                 ^
insert.c
.\Sqlite\v3\insert.c(301): remark #1599: declaration hides variable "base"
(declared at line 201)
      int base = sqlite3VdbeCurrentAddr(v);
          ^
.\Sqlite\v3\insert.c(685): remark #1599: declaration hides variable "base"
(declared at line 201)
      int base = sqlite3VdbeCurrentAddr(v);
          ^
pager.c
.\Sqlite\v3\pager.c(1472): remark #1599: declaration hides variable "nRec"
(declared at line 1402)
      u32 nRec;

.\Sqlite\v3\pager.c(2337): remark #1599: declaration hides variable "rc"
(declared at line 2305)
         int rc;
             ^
.\Sqlite\v3\pager.c(2431): remark #1599: declaration hides variable "rc"
(declared at line 2305)
          int rc = syncJournal(pPager);
              ^
.\Sqlite\v3\pager.c(2523): remark #1599: declaration hides variable "rc"
(declared at line 2305)
        int rc;
            ^
parse.c
parse.c(1276): remark #1418: external definition with no prior declaration
(could be made static)
  const char *sqlite3ParserTokenName(int tokenType){
              ^
vdbe.c
.\Sqlite\v3\vdbe.c(233): remark #1572: floating-point equality and
inequality comparisons are unreliable
          if( ((double)pRec->i)==pRec->r ){
                                 ^
.\Sqlite\v3\vdbe.c(1056): remark #1572: floating-point equality and
inequality comparisons are unreliable
          if( a==0.0 ) goto divide_by_zero;
                 ^
.\Sqlite\v3\vdbe.c(1063): remark #1572: floating-point equality and
inequality comparisons are unreliable
          if( ia==0.0 ) goto divide_by_zero;
                  ^
vdbeaux.c
.\Sqlite\v3\vdbeaux.c(922): remark #1599: declaration hides variable "rc"
(declared at line 909)
      int rc;

where.c
.\Sqlite\v3\where.c(427): remark #1599: declaration hides variable "k"
(declared at line 416)
          int k;
              ^
.\Sqlite\v3\where.c(2021): remark #1599: declaration hides variable "i"
(declared at line 1959)
        int i, j, last;
            ^