From ffa5c25dba42cce2369ef66ee1ce6f22d7e74977 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 30 Jun 2024 07:57:12 +0200 Subject: [PATCH] tests: Avoid warning "is_running_under_virtualbox defined but not used". * tests/virtualbox.h (is_running_under_virtualbox): Mark as possibly unused. --- ChangeLog | 6 ++++++ tests/virtualbox.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5bb15c864c..b10396d1fe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-06-30 Bruno Haible + + tests: Avoid warning "is_running_under_virtualbox defined but not used". + * tests/virtualbox.h (is_running_under_virtualbox): Mark as possibly + unused. + 2024-06-29 Bruno Haible bootstrap-funclib.sh: Restore readability. diff --git a/tests/virtualbox.h b/tests/virtualbox.h index 86a47fa98d..2cc970012f 100644 --- a/tests/virtualbox.h +++ b/tests/virtualbox.h @@ -24,7 +24,7 @@ /* This function determines whether the current system is Linux and running under the VirtualBox emulator. */ -static bool +_GL_ATTRIBUTE_MAYBE_UNUSED static bool is_running_under_virtualbox (void) { #ifdef __linux__ -- 2.39.5