From: fanyang Date: Thu, 19 Jun 2025 12:49:48 +0000 (+0800) Subject: build : suppress gcc15 compile warnings (llama/14261) X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=cef59c1e261462527d372fb7518942d797603a8c;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp build : suppress gcc15 compile warnings (llama/14261) * Change _contains_any() substrs to std::string_view and fix the find comparison logic. --- diff --git a/ggml/src/ggml-backend-reg.cpp b/ggml/src/ggml-backend-reg.cpp index 405d8e31..2d93771f 100644 --- a/ggml/src/ggml-backend-reg.cpp +++ b/ggml/src/ggml-backend-reg.cpp @@ -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