]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
build : suppress gcc15 compile warnings (llama/14261)
authorfanyang <redacted>
Thu, 19 Jun 2025 12:49:48 +0000 (20:49 +0800)
committerGeorgi Gerganov <redacted>
Sat, 21 Jun 2025 04:34:17 +0000 (07:34 +0300)
* Change _contains_any() substrs to std::string_view and fix the find comparison logic.

ggml/src/ggml-backend-reg.cpp

index 405d8e31514b506d028fc5b9b3f4e082e07261c2..2d93771fd1cc0a6145abb4284b4d3b96e244e376 100644 (file)
@@ -69,6 +69,9 @@
 #if defined(__clang__)
 #    pragma clang diagnostic push
 #    pragma clang diagnostic ignored "-Wdeprecated-declarations"
+#elif defined(__GNUC__)
+#    pragma GCC diagnostic push
+#    pragma GCC diagnostic ignored "-Wdeprecated-declarations"
 #endif
 
 namespace fs = std::filesystem;
@@ -91,6 +94,8 @@ static std::string path_str(const fs::path & path) {
 
 #if defined(__clang__)
 #    pragma clang diagnostic pop
+#elif defined(__GNUC__)
+#    pragma GCC diagnostic pop
 #endif
 
 #ifdef _WIN32