X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmisc.cpp;h=d19cd840bbaea481330d77c9d27ff86efb60cd7a;hb=5a871e174f22894837c2363b5c215854ee155113;hp=41c59b3fd888066fc6017318b0c274c0822ebbf3;hpb=82bb21dc7a198609589ef0cc78d185f00f619a90;p=stockfish diff --git a/src/misc.cpp b/src/misc.cpp index 41c59b3f..d19cd840 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -378,10 +378,9 @@ void std_aligned_free(void* ptr) { #if defined(_WIN32) -static void* aligned_large_pages_alloc_windows(size_t allocSize) { +static void* aligned_large_pages_alloc_windows([[maybe_unused]] size_t allocSize) { #if !defined(_WIN64) - (void)allocSize; // suppress unused-parameter compiler warning return nullptr; #else @@ -626,8 +625,7 @@ string argv0; // path+name of the executable binary, as given by argv string binaryDirectory; // path of the executable directory string workingDirectory; // path of the working directory -void init(int argc, char* argv[]) { - (void)argc; +void init([[maybe_unused]] int argc, char* argv[]) { string pathSeparator; // extract the path+name of the executable binary