summaryrefslogtreecommitdiff
path: root/tests/Gtest-concurrent.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Gtest-concurrent.c')
-rw-r--r--tests/Gtest-concurrent.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/Gtest-concurrent.c b/tests/Gtest-concurrent.c
index b98b6c0b..6f3447fd 100644
--- a/tests/Gtest-concurrent.c
+++ b/tests/Gtest-concurrent.c
@@ -27,6 +27,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
# include "config.h"
#endif
+#include "compiler.h"
+
#include <libunwind.h>
#include <limits.h>
#include <pthread.h>
@@ -46,7 +48,7 @@ int got_usr1, got_usr2;
char *sigusr1_sp;
void
-handler (int sig __attribute__((unused)))
+handler (int sig UNUSED)
{
unw_word_t ip;
unw_context_t uc;
@@ -68,7 +70,7 @@ handler (int sig __attribute__((unused)))
}
void *
-worker (void *arg __attribute__((unused)))
+worker (void *arg UNUSED)
{
signal (SIGUSR1, handler);
@@ -102,7 +104,7 @@ doit (void)
}
int
-main (int argc, char **argv __attribute__((unused)))
+main (int argc, char **argv UNUSED)
{
if (argc > 1)
verbose = 1;