This includes a few adaptations I had to make for building on Linux without warnings (using ./tools/Linux/premake5 gmake && pushd build/gmake/ && make config=release_x64 && popd).
Replacing fclose with pclose fixes ../../src/optick_core.linux.h:263:23: error: ‘int fclose(FILE*)’ called on pointer returned from a mismatched allocation function [-Werror=mismatched-dealloc]
Adding #include <cstdio> fixes ../../samples/Common/TestEngine/TestEngine.cpp:274:16: error: ‘sprintf’ was not declared in this scope
Adding default: break; fixes ../../src/optick.h:895:104: error: enumeration value ‘GPU’ not handled in switch [-Werror=switch]
This includes a few adaptations I had to make for building on Linux without warnings (using
./tools/Linux/premake5 gmake && pushd build/gmake/ && make config=release_x64 && popd
).fclose
withpclose
fixes../../src/optick_core.linux.h:263:23: error: ‘int fclose(FILE*)’ called on pointer returned from a mismatched allocation function [-Werror=mismatched-dealloc]
#include <cstdio>
fixes../../samples/Common/TestEngine/TestEngine.cpp:274:16: error: ‘sprintf’ was not declared in this scope
default: break;
fixes../../src/optick.h:895:104: error: enumeration value ‘GPU’ not handled in switch [-Werror=switch]