[MPlayer-cvslog] r38470 - in trunk/gui: dialog/fileselect.c skin/font.c
ib
subversion at mplayerhq.hu
Sun Apr 21 13:07:02 EEST 2024
Author: ib
Date: Sun Apr 21 13:07:02 2024
New Revision: 38470
Log:
Use WARN macros to suppress compiler warnings.
Modified:
trunk/gui/dialog/fileselect.c
trunk/gui/skin/font.c
Modified: trunk/gui/dialog/fileselect.c
==============================================================================
--- trunk/gui/dialog/fileselect.c Sun Apr 21 13:05:45 2024 (r38469)
+++ trunk/gui/dialog/fileselect.c Sun Apr 21 13:07:02 2024 (r38470)
@@ -735,7 +735,9 @@ static void fs_Destroy(void)
g_hash_table_destroy(fsPathTable);
+WARN_OFF(cast_function_type)
g_list_foreach(fsTopList_items, (GFunc)g_free, NULL); // deliberate cast between incompatible function types
+WARN_ON
g_list_free(fsTopList_items);
fsTopList_items = NULL;
}
Modified: trunk/gui/skin/font.c
==============================================================================
--- trunk/gui/skin/font.c Sun Apr 21 13:05:45 2024 (r38469)
+++ trunk/gui/skin/font.c Sun Apr 21 13:07:02 2024 (r38470)
@@ -28,6 +28,7 @@
#include "font.h"
#include "skin.h"
+#include "gui/app/gui.h"
#include "gui/util/mem.h"
#include "gui/util/misc.h"
#include "gui/util/string.h"
@@ -237,9 +238,9 @@ int fntRead(char *path, char *fname)
!fntAllocBit8Chr(Fonts[id], EXTRA_CHRS))
continue;
}
-
+WARN_OFF(stringop_truncation)
strncpy(Fonts[id]->bit8_chr + Fonts[id]->bit8_count * UTF8LENGTH, item, UTF8LENGTH); // deliberate output truncation (no null-termination required)
-
+WARN_ON
i = Fonts[id]->bit8_count++ + ASCII_CHRS;
} else
i = item[0];
More information about the MPlayer-cvslog
mailing list