mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
Merge pull request #9171 from orbea/clang
Silence -Wstring-plus-int with clang.
This commit is contained in:
commit
286217394f
@ -72,7 +72,7 @@ static struct string_list *image_file_list;
|
||||
static const char* IMAGE_CORE_PREFIX(valid_extensions) = "jpg|jpeg|png|bmp|psd|tga|gif|hdr|pic|ppm|pgm";
|
||||
#else
|
||||
|
||||
static const char* IMAGE_CORE_PREFIX(valid_extensions) = 1+ /* to remove the first |, the alternative is 25 extra lines of ifdef/etc */
|
||||
static const char image_formats[] =
|
||||
|
||||
#ifdef HAVE_RJPEG
|
||||
"|jpg|jpeg"
|
||||
@ -95,6 +95,9 @@ static const char* IMAGE_CORE_PREFIX(valid_extensions) = 1+ /* to remove the fir
|
||||
#endif
|
||||
;
|
||||
|
||||
/* to remove the first |, the alternative is 25 extra lines of ifdef/etc */
|
||||
static const char* IMAGE_CORE_PREFIX(valid_extensions) = image_formats + 1;
|
||||
|
||||
#endif
|
||||
|
||||
void IMAGE_CORE_PREFIX(retro_get_system_info)(struct retro_system_info *info)
|
||||
|
Loading…
x
Reference in New Issue
Block a user