Fix pedantic mesonery

This commit is contained in:
pancake committed 2026-05-14 21:54:42 +02:00
1 parent 922bad8fd8
commit 656ab44e01
3 files changed
+12 -1

No files matched your search

+8
View File
@@ -9,6 +9,14 @@ project(
],
)
add_project_arguments(
[
'-D_DEFAULT_SOURCE',
'-D_POSIX_C_SOURCE=200809L',
],
language: 'c',
)
r_util_dep = dependency('r_util')
conf = configuration_data()
+1
View File
@@ -3,6 +3,7 @@
#define R_LOG_ORIGIN "r2unity.paths"
#include "lib.h"
#include <strings.h>
#include <r_util.h>
static bool str_ieq(const char *a, const char *b) {
+3 -1
View File
@@ -589,7 +589,9 @@ static bool find_method_pointers_fast(R2UnityMetadata *meta, const char *path, u
ut8 magic[4] = { 0 };
FILE *fp = fopen (path, "rb");
if (fp) {
(void)fread (magic, 1, 4, fp);
if (fread (magic, 1, sizeof (magic), fp) != sizeof (magic)) {
memset (magic, 0, sizeof (magic));
}
fclose (fp);
}
if (!memcmp (magic, "\x7f"