Commit b3260e7eb3982bdf04aefe198c0f6aa36c84bbab

Nhalrath 2022-06-11T23:34:20

Remove macro definition for SDL_ERRBUFIZE I was looking at how errors are handled by SDL and came across this #define SDL_ERRBUFIZE which looks like a typo for SDL_ERRBUFSIZE, but either way, it looks like this isn't being used anywhere anymore because it was getting reported whenever I compile SDL with -Wunused-macros, and the last time it was mentioned in the code was from commit 09ca66b.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/SDL_error.c b/src/SDL_error.c
index 4d25999..68b518d 100644
--- a/src/SDL_error.c
+++ b/src/SDL_error.c
@@ -25,8 +25,6 @@
 #include "SDL_error.h"
 #include "SDL_error_c.h"
 
-#define SDL_ERRBUFIZE   1024
-
 int
 SDL_SetError(SDL_PRINTF_FORMAT_STRING const char *fmt, ...)
 {