Quellcode durchsuchen

wasm: Fix warnings.

Бранимир Караџић vor 2 Jahren
Ursprung
Commit
03fd6f4771
2 geänderte Dateien mit 8 neuen und 1 gelöschten Zeilen
  1. 7 1
      src/debug.cpp
  2. 1 0
      src/filepath.cpp

+ 7 - 1
src/debug.cpp

@@ -43,7 +43,13 @@ namespace bx
 		// NativeClient: NaCl module load failed: Validation failure. File violates Native Client safety rules.
 		__asm__ ("int $3");
 #elif BX_PLATFORM_EMSCRIPTEN
-		emscripten_log(EM_LOG_CONSOLE | EM_LOG_ERROR | EM_LOG_C_STACK | EM_LOG_JS_STACK | EM_LOG_DEMANGLE, "debugBreak!");
+		emscripten_log(0
+			| EM_LOG_CONSOLE
+			| EM_LOG_ERROR
+			| EM_LOG_C_STACK
+			| EM_LOG_JS_STACK
+			, "debugBreak!"
+			);
 		// Doing emscripten_debugger() disables asm.js validation due to an emscripten bug
 		//emscripten_debugger();
 		EM_ASM({ debugger; });

+ 1 - 0
src/filepath.cpp

@@ -224,6 +224,7 @@ namespace bx
 		bool result = _NSGetExecutablePath(_out, &len);
 		return 0 == result;
 #else
+		BX_UNUSED(_out, _inOutSize);
 		return false;
 #endif // BX_PLATFORM_*
 	}