1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0032460: Coding Rules - eliminate CLang warning -Wunused-but-set-variable

Code has been adjusted to suppress -Wunused-but-set-variable warnings.

DRAWEXE.wasm, compiler flags have been moved to linker flags
to eliminiate -Wunused-command-line-argument warnings.
This commit is contained in:
kgv
2021-06-24 23:07:37 +03:00
parent 503374ad84
commit 73dee81133
15 changed files with 123 additions and 58 deletions

View File

@@ -453,11 +453,16 @@ static Standard_Integer dversion(Draw_Interpretor& di, Standard_Integer, const c
di << "Architecture: ARM 32-bit\n";
#endif
#elif defined(__EMSCRIPTEN__)
di << "Architecture: WASM "
#if defined(__LP64__)
di << "Architecture: WASM 64-bit\n";
<< "64-bit"
#else
di << "Architecture: WASM 32-bit\n";
<< "32-bit"
#endif
#if defined(__wasm_simd128__)
<< " SIMD128"
#endif
<< "\n";
#else
di << "Architecture: unrecognized\n";
#endif
@@ -482,7 +487,13 @@ static Standard_Integer dversion(Draw_Interpretor& di, Standard_Integer, const c
#include <sys/param.h>
di << "OS: BSD (BSD = " << BSD << ")\n";
#elif defined(__EMSCRIPTEN__)
di << "OS: WebAssembly (Emscripten SDK " << __EMSCRIPTEN_major__ << "." << __EMSCRIPTEN_minor__ << "." << __EMSCRIPTEN_tiny__ << ")\n";
di << "OS: WebAssembly (Emscripten SDK " << __EMSCRIPTEN_major__ << "." << __EMSCRIPTEN_minor__ << "." << __EMSCRIPTEN_tiny__
#ifdef __EMSCRIPTEN_PTHREADS__
<< "; pthreads ON"
#else
<< "; pthreads OFF"
#endif
<< ")\n";
#else
di << "OS: unrecognized\n";
#endif