build: resolve 101 instances of -Wunused-variable

This commit is contained in:
Jan Engelhardt
2024-11-03 21:39:51 +01:00
parent 8d4addecfa
commit 48953868df
33 changed files with 31 additions and 114 deletions

View File

@@ -233,7 +233,6 @@ bool mod_FreeModule(module *handle) {
// mod_GetLastError to see if there was an error symstr is the name of the function you want to get the symbol for (Do
// NOT give any pre/suffix to this name) parmbytes is the size (in bytes) of the parameter list the function should have
MODPROCADDRESS mod_GetSymbol(module *handle, const char *symstr, uint8_t parmbytes) {
char buffer[256];
MODPROCADDRESS sym;
if (!handle) {
ModLastError = MODERR_INVALIDHANDLE;
@@ -248,6 +247,7 @@ MODPROCADDRESS mod_GetSymbol(module *handle, const char *symstr, uint8_t parmbyt
return nullptr;
}
#if defined(WIN32)
char buffer[256];
// We need to first form the correct symbol name (for Windows)
if (parmbytes == 255)
sprintf(buffer, "%s", symstr);