From 7e800791a194f3f46c0e6c456bd42a972120beb4 Mon Sep 17 00:00:00 2001 From: Gabriel Ravier Date: Sun, 9 Nov 2025 15:12:50 +0100 Subject: Correctly type the global char arrays in build.h as const (#1827) Given that these arrays are typed as const in in build.c (and in OOT's include/build.h), it seems logical to also type them as const here. --- include/build.h | 6 +++--- src/boot/build.c | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/include/build.h b/include/build.h index fa86f5cee..25afaaa81 100644 --- a/include/build.h +++ b/include/build.h @@ -1,8 +1,8 @@ #ifndef BUILD_H #define BUILD_H -extern char gBuildCreator[]; -extern char gBuildDate[]; -extern char gBuildMakeOption[]; +extern const char gBuildCreator[]; +extern const char gBuildDate[]; +extern const char gBuildMakeOption[]; #endif diff --git a/src/boot/build.c b/src/boot/build.c index 31bb34016..87bd5df8d 100644 --- a/src/boot/build.c +++ b/src/boot/build.c @@ -1,3 +1,5 @@ +#include "build.h" + const char gBuildCreator[] = "zelda@srd44"; const char gBuildDate[] = "00-07-31 17:04:16"; const char gBuildMakeOption[] = ""; -- cgit v1.2.3