mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-08 20:49:44 +00:00
8257467: [TESTBUG] -Wdeprecated-declarations is reported at sigset() in exesigtest.c
Reviewed-by: dholmes, stuefe
This commit is contained in:
parent
9de283b891
commit
fb139cff1a
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user