Skip to content

Commit

Permalink
fix -Wundef warning '"_MSC_VER" is not defined, evaluates to 0'
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 25, 2024
1 parent 9e9801d commit c9c809b
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/IMG_avif.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ SDL_Surface *IMG_LoadAVIF_RW(SDL_RWops *src)
}

#else
#if _MSC_VER >= 1300
#if defined(_MSC_VER) && _MSC_VER >= 1300
#pragma warning(disable : 4100) /* warning C4100: 'op' : unreferenced formal parameter */
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/IMG_bmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ SDL_Surface *IMG_LoadCUR_RW(SDL_RWops *src)

#else

#if _MSC_VER >= 1300
#if defined(_MSC_VER) && _MSC_VER >= 1300
#pragma warning(disable : 4100) /* warning C4100: 'op' : unreferenced formal parameter */
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/IMG_gif.c
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ SDL_Surface *IMG_LoadGIF_RW(SDL_RWops *src)
}

#else
#if _MSC_VER >= 1300
#if defined(_MSC_VER) && _MSC_VER >= 1300
#pragma warning(disable : 4100) /* warning C4100: 'op' : unreferenced formal parameter */
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/IMG_jpg.c
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ SDL_Surface *IMG_LoadJPG_RW(SDL_RWops *src)
#endif /* WANT_JPEGLIB */

#else
#if _MSC_VER >= 1300
#if defined(_MSC_VER) && _MSC_VER >= 1300
#pragma warning(disable : 4100) /* warning C4100: 'op' : unreferenced formal parameter */
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/IMG_jxl.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ SDL_Surface *IMG_LoadJXL_RW(SDL_RWops *src)
}

#else
#if _MSC_VER >= 1300
#if defined(_MSC_VER) && _MSC_VER >= 1300
#pragma warning(disable : 4100) /* warning C4100: 'op' : unreferenced formal parameter */
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/IMG_lbm.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ SDL_Surface *IMG_LoadLBM_RW( SDL_RWops *src )
}

#else /* LOAD_LBM */
#if _MSC_VER >= 1300
#if defined(_MSC_VER) && _MSC_VER >= 1300
#pragma warning(disable : 4100) /* warning C4100: 'op' : unreferenced formal parameter */
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/IMG_pcx.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ SDL_Surface *IMG_LoadPCX_RW(SDL_RWops *src)
}

#else
#if _MSC_VER >= 1300
#if defined(_MSC_VER) && _MSC_VER >= 1300
#pragma warning(disable : 4100) /* warning C4100: 'op' : unreferenced formal parameter */
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/IMG_png.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ SDL_Surface *IMG_LoadPNG_RW(SDL_RWops *src)
#endif /* WANT_LIBPNG */

#else
#if _MSC_VER >= 1300
#if defined(_MSC_VER) && _MSC_VER >= 1300
#pragma warning(disable : 4100) /* warning C4100: 'op' : unreferenced formal parameter */
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/IMG_pnm.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ SDL_Surface *IMG_LoadPNM_RW(SDL_RWops *src)
}

#else
#if _MSC_VER >= 1300
#if defined(_MSC_VER) && _MSC_VER >= 1300
#pragma warning(disable : 4100) /* warning C4100: 'op' : unreferenced formal parameter */
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/IMG_qoi.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ SDL_Surface *IMG_LoadQOI_RW(SDL_RWops *src)
}

#else
#if _MSC_VER >= 1300
#if defined(_MSC_VER) && _MSC_VER >= 1300
#pragma warning(disable : 4100) /* warning C4100: 'op' : unreferenced formal parameter */
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/IMG_svg.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ SDL_Surface *IMG_LoadSizedSVG_RW(SDL_RWops *src, int width, int height)
}

#else
#if _MSC_VER >= 1300
#if defined(_MSC_VER) && _MSC_VER >= 1300
#pragma warning(disable : 4100) /* warning C4100: 'op' : unreferenced formal parameter */
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/IMG_tga.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ SDL_Surface *IMG_LoadTGA_RW(SDL_RWops *src)
}

#else
#if _MSC_VER >= 1300
#if defined(_MSC_VER) && _MSC_VER >= 1300
#pragma warning(disable : 4100) /* warning C4100: 'op' : unreferenced formal parameter */
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/IMG_tif.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ SDL_Surface* IMG_LoadTIF_RW(SDL_RWops* src)
}

#else
#if _MSC_VER >= 1300
#if defined(_MSC_VER) && _MSC_VER >= 1300
#pragma warning(disable : 4100) /* warning C4100: 'op' : unreferenced formal parameter */
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/IMG_webp.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ IMG_Animation *IMG_LoadWEBPAnimation_RW(SDL_RWops *src)
}

#else
#if _MSC_VER >= 1300
#if defined(_MSC_VER) && _MSC_VER >= 1300
#pragma warning(disable : 4100) /* warning C4100: 'op' : unreferenced formal parameter */
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/IMG_xcf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ SDL_Surface *IMG_LoadXCF_RW(SDL_RWops *src)
}

#else
#if _MSC_VER >= 1300
#if defined(_MSC_VER) && _MSC_VER >= 1300
#pragma warning(disable : 4100) /* warning C4100: 'op' : unreferenced formal parameter */
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/IMG_xpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ SDL_Surface *IMG_ReadXPMFromArrayToRGB888(char **xpm)
}

#else /* not LOAD_XPM */
#if _MSC_VER >= 1300
#if defined(_MSC_VER) && _MSC_VER >= 1300
#pragma warning(disable : 4100) /* warning C4100: 'op' : unreferenced formal parameter */
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/IMG_xv.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ SDL_Surface *IMG_LoadXV_RW(SDL_RWops *src)
}

#else
#if _MSC_VER >= 1300
#if defined(_MSC_VER) && _MSC_VER >= 1300
#pragma warning(disable : 4100) /* warning C4100: 'op' : unreferenced formal parameter */
#endif

Expand Down

0 comments on commit c9c809b

Please sign in to comment.