Skip to content
Permalink
Browse files
8257467: [TESTBUG] -Wdeprecated-declarations is reported at sigset() …
…in exesigtest.c

Backport-of: fb139cf
  • Loading branch information
Paul Hohensee committed Dec 1, 2021
1 parent 12ffc99 commit 78ab2fb02b9926310805eeb18387e9de0d689a9a
Showing 1 changed file with 8 additions and 1 deletion.
@@ -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
@@ -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);
}

1 comment on commit 78ab2fb

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 78ab2fb Dec 1, 2021

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.