fix apple clang warning for music test
define this as constant otherwise compiler may treat the array as being variable in size for some reason
This commit is contained in:
1 parent
756f1783ed
commit
be97384b01
1 file changed
+2
-2
+2
-2
@@ -5777,13 +5777,12 @@ static void M_DrawMusicTest(void)
|
||||
V_DrawFill(20, y-4, 280-1, 16, 237);
|
||||
|
||||
{
|
||||
|
||||
const musicdef_t *def = S_GetMusicCredit(t);
|
||||
const char *songname = def->title[0] ? def->title : def->source;
|
||||
|
||||
size_t namelength = strlen(songname);
|
||||
|
||||
static const size_t MAXLENGTH = 34;
|
||||
#define MAXLENGTH 34
|
||||
char buf[MAXLENGTH+1];
|
||||
|
||||
if (t == st_sel && namelength > MAXLENGTH)
|
||||
@@ -5797,6 +5796,7 @@ static void M_DrawMusicTest(void)
|
||||
{
|
||||
V_DrawFill(20+280-9, y-4, 8, 16, 230);
|
||||
}
|
||||
#undef MAXLENGTH
|
||||
}
|
||||
|
||||
t++;
|
||||
|
||||
Reference in new issue
Block a user