commit 8909ba06ea1893a6e028836fbade28fd115ee1cc Author: Julian Groß Date: Wed Feb 17 04:51:49 2021 +0100 Enable building on aarch64 according to https://github.com/castano/nvidia-texture-tools/pull/309 and https://github.com/castano/nvidia-texture-tools/pull/322 diff --git a/src/nvcore/Debug.cpp b/src/nvcore/Debug.cpp index 9ab4525..e335f97 100644 --- a/src/nvcore/Debug.cpp +++ b/src/nvcore/Debug.cpp @@ -1008,6 +1008,13 @@ void debug::dumpInfo() #endif } +static va_list getEmptyVAList(va_list list, ...) +{ + va_start(list, list); + va_end(list); + return list; +} + /// Dump callstack using the specified handler. void debug::dumpCallstack(MessageHandler *messageHandler, int callstackLevelsToSkip /*= 0*/) { @@ -1020,8 +1027,11 @@ void debug::dumpCallstack(MessageHandler *messageHandler, int callstackLevelsToS Array lines; writeStackTrace(trace, size, callstackLevelsToSkip + 1, lines); // + 1 to skip the call to dumpCallstack + va_list empty; + empty = getEmptyVAList(empty); + for (uint i = 0; i < lines.count(); i++) { - messageHandler->log(lines[i], NULL); + messageHandler->log(lines[i], empty); delete lines[i]; } }