diff options
author | Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> | 2024-03-04 00:12:05 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-04 01:12:05 +0100 |
commit | 85a2fb9c56c1942958c09c8aeafd14ddefb6e0c3 (patch) | |
tree | 146142afc5d0e9272efbdca08108e4674a32f764 /primedev/mods | |
parent | 4b0726d97788edff5d83476cb52057f409d623af (diff) | |
download | NorthstarLauncher-85a2fb9c56c1942958c09c8aeafd14ddefb6e0c3.tar.gz NorthstarLauncher-85a2fb9c56c1942958c09c8aeafd14ddefb6e0c3.zip |
Address C4100 compiler warnings (unused var) (#648)v1.24.4-rc1v1.24.3-rc3v1.24.3-rc2v1.24.3
Adds and uses a macro to avoid the warning
Diffstat (limited to 'primedev/mods')
-rw-r--r-- | primedev/mods/autodownload/moddownloader.cpp | 2 | ||||
-rw-r--r-- | primedev/mods/modmanager.cpp | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/primedev/mods/autodownload/moddownloader.cpp b/primedev/mods/autodownload/moddownloader.cpp index 960f435a..3a946263 100644 --- a/primedev/mods/autodownload/moddownloader.cpp +++ b/primedev/mods/autodownload/moddownloader.cpp @@ -126,6 +126,8 @@ size_t WriteData(void* ptr, size_t size, size_t nmemb, FILE* stream) int ModDownloader::ModFetchingProgressCallback( void* ptr, curl_off_t totalDownloadSize, curl_off_t finishedDownloadSize, curl_off_t totalToUpload, curl_off_t nowUploaded) { + NOTE_UNUSED(totalToUpload); + NOTE_UNUSED(nowUploaded); if (totalDownloadSize != 0 && finishedDownloadSize != 0) { ModDownloader* instance = static_cast<ModDownloader*>(ptr); diff --git a/primedev/mods/modmanager.cpp b/primedev/mods/modmanager.cpp index e1077922..268a65a5 100644 --- a/primedev/mods/modmanager.cpp +++ b/primedev/mods/modmanager.cpp @@ -1121,6 +1121,7 @@ void ModManager::CompileAssetsForFile(const char* filename) void ConCommand_reload_mods(const CCommand& args) { + NOTE_UNUSED(args); g_pModManager->LoadMods(); } |