8257467: [TESTBUG] -Wdeprecated-declarations is reported at sigset() in exesigtest.c

Reviewed-by: dholmes, stuefe
This commit is contained in:
Yasumasa Suenaga 2020-12-02 09:06:02 +00:00
parent 9de283b891
commit fb139cff1a

View File

@ -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);
}