posix: Ignore Wshadow warning for sigaction
Wrap `sigaction()` declaration with `TOOLCHAIN_IGNORE_WSHADOW_BEGIN` and `TOOLCHAIN_IGNORE_WSHADOW_END` to ignore Wshadow warning which occurs because `struct sigaction` already exists. fixes: #83111 Signed-off-by: Maciej Baczmanski <maciej.baczmanski@nordicsemi.no>
This commit is contained in:
parent
3f4b5a6f3b
commit
fb633641b3
1 changed files with 2 additions and 0 deletions
|
|
@ -122,7 +122,9 @@ unsigned int alarm(unsigned int seconds);
|
|||
int kill(pid_t pid, int sig);
|
||||
int pause(void);
|
||||
int raise(int signo);
|
||||
TOOLCHAIN_IGNORE_WSHADOW_BEGIN;
|
||||
int sigaction(int sig, const struct sigaction *ZRESTRICT act, struct sigaction *ZRESTRICT oact);
|
||||
TOOLCHAIN_IGNORE_WSHADOW_END;
|
||||
int sigpending(sigset_t *set);
|
||||
int sigsuspend(const sigset_t *sigmask);
|
||||
int sigwait(const sigset_t *ZRESTRICT set, int *ZRESTRICT signo);
|
||||
|
|
|
|||
Loading…
Reference in a new issue