From: Bruno Haible Date: Sun, 30 Jun 2024 05:57:12 +0000 (+0200) Subject: tests: Avoid warning "is_running_under_virtualbox defined but not used". X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=ffa5c25dba42cce2369ef66ee1ce6f22d7e74977;p=gnulib.git tests: Avoid warning "is_running_under_virtualbox defined but not used". * tests/virtualbox.h (is_running_under_virtualbox): Mark as possibly unused. --- 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__