Ignore:
Timestamp:
Mar 2, 2008, 12:52:07 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Fix a few more warnings.
  • Remove -Wshadow from the warnings because it is too verbose for now.
  • Remove warning flags that have no meaning in C++.
Location:
abuse/trunk/src/imlib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/gifread.cpp

    r17 r40  
    1414
    1515
    16 struct {
     16struct GifScreen {
    1717        uint16_t        Width;
    1818        uint16_t        Height;
     
    2424} GifScreen;
    2525
    26 struct {
     26struct gif_screen {
    2727  uint16_t w,h;
    2828  uint8_t color_info,background,reserved;
    2929} gif_screen;
    3030
    31 struct {
     31struct gif_image {
    3232  uint16_t xoff,yoff,w,h;
    3333  uint8_t color_info;
  • abuse/trunk/src/imlib/jmalloc.cpp

    r39 r40  
    203203  for (;f;f=f->next,i++)
    204204  {   
    205     fprintf(fp,"%4d   %p (%d) %4d      ",i,f,((char *)f-(char *)sfirst),f->size);
     205    fprintf(fp, "%4d   %p (%ld) %4ld      ",
     206            i, f, (long int)((char *)f - (char *)sfirst), (long int)f->size);
    206207#ifdef MEM_CHECK
    207208    if (f->size>0)
     
    236237
    237238
    238   fprintf(fp,"************** CACHE SPACE ******************\n",block_size);
     239  fprintf(fp,"************** CACHE SPACE %i ******************\n", block_size);
    239240  i=0;
    240241  for (f=cfirst;f;f=f->next,i++)
     
    690691    "    DOS users  : Remove any TSR's and device drivers you can.\n"
    691692    "    UNIX users : Do you have a swapfile/partition setup?\n";
     693#ifdef __WATCOMC__
    692694static char const *not_enough_low_memory_message =
    693695    "Memory Manager : Not enough low memory available (%d : need %d)\n"
     
    696698    "    - remove TSRs & drivers not needed by ABUSE\n"
    697699    "    - add memory to your system\n";
     700#endif
    698701
    699702void jmalloc_init(int32_t min_size)
  • abuse/trunk/src/imlib/targa.cpp

    r17 r40  
    4343  int h=fp->read_uint16();
    4444  uint8_t bpp=fp->read_uint8();
    45   uint8_t im_des=fp->read_uint8();
     45  fp->read_uint8(); // im_des
    4646
    4747  if (bpp!=32)
Note: See TracChangeset for help on using the changeset viewer.