Mercurial > hg > xemacs-beta
comparison src/gif_io.c @ 4528:726060ee587c g++-warning-removal-2008-10-28
First draft of g++ 4.3 warning removal patch. Builds. *Needs ChangeLogs.*
author | Stephen J. Turnbull <stephen@xemacs.org> |
---|---|
date | Wed, 29 Oct 2008 04:06:33 +0900 |
parents | fc7067b7f407 |
children |
comparison
equal
deleted
inserted
replaced
4524:03ba50f7ecd7 | 4528:726060ee587c |
---|---|
138 { | 138 { |
139 GifIODataType *GifIO = (GifIODataType*)GifFile->GifIO; | 139 GifIODataType *GifIO = (GifIODataType*)GifFile->GifIO; |
140 return ((*(GifIO->CloseFunc))(GifIO->CloseFunc_data)); | 140 return ((*(GifIO->CloseFunc))(GifIO->CloseFunc_data)); |
141 } | 141 } |
142 | 142 |
143 static char *GifErrorString[14] = { | 143 static const char *GifErrorString[14] = { |
144 "Failed to open given file", /* D_GIF_ERR_OPEN_FAILED */ | 144 "Failed to open given file", /* D_GIF_ERR_OPEN_FAILED */ |
145 "Failed to read from given file", /* D_GIF_ERR_READ_FAILED */ | 145 "Failed to read from given file", /* D_GIF_ERR_READ_FAILED */ |
146 "Given file is NOT a GIF file", /* D_GIF_ERR_NOT_GIF_FILE */ | 146 "Given file is NOT a GIF file", /* D_GIF_ERR_NOT_GIF_FILE */ |
147 "No Screen Descriptor detected", /* D_GIF_ERR_NO_SCRN_DSCR */ | 147 "No Screen Descriptor detected", /* D_GIF_ERR_NO_SCRN_DSCR */ |
148 "No Image Descriptor detected", /* D_GIF_ERR_NO_IMAG_DSCR */ | 148 "No Image Descriptor detected", /* D_GIF_ERR_NO_IMAG_DSCR */ |
162 /***************************************************************************** | 162 /***************************************************************************** |
163 * Get the last GIF error in human-readable form. * | 163 * Get the last GIF error in human-readable form. * |
164 *****************************************************************************/ | 164 *****************************************************************************/ |
165 const char *GetGifError(int errore) | 165 const char *GetGifError(int errore) |
166 { | 166 { |
167 char *Err; | 167 const char *Err; |
168 | 168 |
169 switch(errore) { | 169 switch(errore) { |
170 case D_GIF_ERR_OPEN_FAILED: | 170 case D_GIF_ERR_OPEN_FAILED: |
171 Err = GifErrorString[0]; | 171 Err = GifErrorString[0]; |
172 break; | 172 break; |