Changeset 362 for trunk/src/sh_hash.c


Ignore:
Timestamp:
Oct 19, 2011, 12:16:31 AM (13 years ago)
Author:
katerina
Message:

Fix for ticket #267 (Multiple compiler warnings with gcc 4.6.1).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_hash.c

    r356 r362  
    435435  char hashbuf[KEYBUF_SIZE];
    436436  int  retval;
    437   volatile int flag = 0;
    438437
    439438  /* --------  find the entry for the file ----------------       */
     
    462461  sh_error_handle (level, FIL__, __LINE__, 0,
    463462                   MSG_FI_MISS2, tmp, str);
    464   flag = 1;
     463
    465464  SH_FREE(tmp);
    466465  SH_FREE(str);
     
    13021301  extern int get_the_fd (SL_TICKET ticket);
    13031302
    1304   int    flag_pgp;
    1305   int    flag_nohead;
    13061303  SL_TICKET fdTmp = (-1);
    13071304#endif
     
    13141311
    13151312  SH_MUTEX_LOCK(mutex_hash);
    1316 
    1317 #if defined(WITH_GPG) || defined(WITH_PGP)
    1318   flag_pgp = S_FALSE;
    1319   flag_nohead = S_FALSE;
    1320 #endif
    13211313
    13221314  if (IsInit == 1)
     
    38853877  size_t size       = 0;
    38863878  size_t flag_quote = 0;
    3887   int    flag_comma = 0;
     3879
    38883880  char * new;
    38893881  char * pnew;
     
    38943886      while (*p)
    38953887        {
    3896           if (*p == ',')
    3897             flag_comma = 1;
    3898           else if (*p == '"')
     3888          if (*p == '"')
    38993889            ++flag_quote;
    39003890         
Note: See TracChangeset for help on using the changeset viewer.