Commit f92e1e4d for whisper.cpp
commit f92e1e4d1056700c39d4e86c1140f0a088fe1ab6
Author: Daniel Bevenius <daniel.bevenius@gmail.com>
Date: Sat Nov 7 20:01:46 2026 -0800
examples : fix compiler warnings in common-ggml.cpp (#4157)
* examples : fix compiler warnings in common-ggml.cpp
This commit fixes the following compiler warnings that are generated by
common-ggml.cpp after the last ggml sync:
```console
/whisper.cpp/examples/common-ggml.cpp:50:13: warning:
enumeration value 'GGML_FTYPE_MOSTLY_F8_E4M3' not handled in switch [-Wswitch]
switch (ftype) {
^~~~~
/whisper.cpp/examples/common-ggml.cpp:183:21: warning:
enumeration value 'GGML_TYPE_F8_E4M3' not handled in switch [-Wswitch]
switch ((ggml_type) ttype) {
^~~~~~~~~~~~~~~~~
```
* examples : add missing mutex include to wchess.wasm.cpp
diff --git a/examples/common-ggml.cpp b/examples/common-ggml.cpp
index 11a5c0a1..ddbb3d9b 100644
--- a/examples/common-ggml.cpp
+++ b/examples/common-ggml.cpp
@@ -61,6 +61,7 @@ bool ggml_common_quantize_0(
case GGML_FTYPE_UNKNOWN:
case GGML_FTYPE_ALL_F32:
case GGML_FTYPE_MOSTLY_F16:
+ case GGML_FTYPE_MOSTLY_F8_E4M3:
case GGML_FTYPE_MOSTLY_Q4_1_SOME_F16:
case GGML_FTYPE_MOSTLY_IQ2_XXS:
case GGML_FTYPE_MOSTLY_IQ2_XS:
@@ -196,6 +197,7 @@ bool ggml_common_quantize_0(
} break;
case GGML_TYPE_F32:
case GGML_TYPE_F16:
+ case GGML_TYPE_F8_E4M3:
case GGML_TYPE_I8:
case GGML_TYPE_I16:
case GGML_TYPE_I32:
diff --git a/examples/wchess/wchess.wasm/wchess.wasm.cpp b/examples/wchess/wchess.wasm/wchess.wasm.cpp
index f3fb084c..2a50c7ad 100644
--- a/examples/wchess/wchess.wasm/wchess.wasm.cpp
+++ b/examples/wchess/wchess.wasm/wchess.wasm.cpp
@@ -3,6 +3,7 @@
#include <emscripten/bind.h>
#include <thread>
+#include <mutex>
constexpr int N_THREAD = 8;