Commit 5f982376 for whisper.cpp

commit 5f9823760117f500ebce2527cbb2314572f5fcd6
Author: Daniel Bevenius <daniel.bevenius@gmail.com>
Date:   Tue Nov 17 21:46:27 2026 -0800

    whisper: change visibility of whisper_log_internal to hidden (#4186)

    This commit updates the whisper_log_internal function to have not have
    default visibility and hence exported. Instead it is given hidden
    visibility so that it can still be used internally but will not be
    included in the dynamic symbol table by the linker.
    This is an internal header and show not be callable by exterenal code.

diff --git a/src/whisper-logging.h b/src/whisper-logging.h
index 9a873408..e4e3bf7d 100644
--- a/src/whisper-logging.h
+++ b/src/whisper-logging.h
@@ -15,6 +15,9 @@ extern "C" {
 #endif

 GGML_ATTRIBUTE_FORMAT(2, 3)
+#if defined(__GNUC__) || defined(__clang__)
+__attribute__((visibility("hidden")))
+#endif
 void whisper_log_internal(ggml_log_level level, const char * format, ...);

 #ifdef __cplusplus
diff --git a/src/whisper.cpp b/src/whisper.cpp
index 1c7771fc..1aa1a9c8 100644
--- a/src/whisper.cpp
+++ b/src/whisper.cpp
@@ -9362,6 +9362,9 @@ const char * whisper_version(void) {
 }

 GGML_ATTRIBUTE_FORMAT(2, 3)
+#if defined(__GNUC__) || defined(__clang__)
+__attribute__((visibility("hidden")))
+#endif
 void whisper_log_internal(ggml_log_level level, const char * format, ...) {
     va_list args;
     va_start(args, format);