bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a pthread_cond_timedwait bug


From: Bruno Haible
Subject: Re: a pthread_cond_timedwait bug
Date: Sun, 30 Jun 2024 07:57:36 +0200

>       * tests/virtualbox.h: New file.

This produces compiler warnings on non-Linux platforms. Fixed through:


2024-06-30  Bruno Haible  <bruno@clisp.org>

        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/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__






reply via email to

[Prev in Thread] Current Thread [Next in Thread]