Skip to content

Commit

Permalink
8257467: [TESTBUG] -Wdeprecated-declarations is reported at sigset() …
Browse files Browse the repository at this point in the history
…in exesigtest.c

Backport-of: fb139cf
  • Loading branch information
Paul Hohensee committed Dec 1, 2021
1 parent 12ffc99 commit 78ab2fb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/hotspot/jtreg/runtime/signal/exesigtest.c
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -242,7 +242,14 @@ void setSignalHandler()
} // end - dealing with sigaction
else if (!strcmp(mode, "sigset"))
{
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
sigset(signal_num, handler);
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
} // end dealing with sigset
printf("%s: signal handler using function '%s' has been set\n", signal_name, mode);
}
Expand Down

1 comment on commit 78ab2fb

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.