Skip to content
This repository has been archived by the owner before Nov 9, 2022. It is now read-only.
Permalink
Browse files
8257467: [TESTBUG] -Wdeprecated-declarations is reported at sigset() …
…in exesigtest.c

Reviewed-by: dholmes, stuefe
  • Loading branch information
YaSuenag committed Dec 2, 2020
1 parent 9de283b commit fb139cff1a6ddf7659908053d5a0a6ae7563e725
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);
}

0 comments on commit fb139cf

Please sign in to comment.