Skip to content

Commit

Permalink
posix: Ignore Wshadow warning for sigaction
Browse files Browse the repository at this point in the history
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: zephyrproject-rtos#83111

Signed-off-by: Maciej Baczmanski <[email protected]>
  • Loading branch information
maciejbaczmanski authored and kartben committed Dec 19, 2024
1 parent 3f4b5a6 commit fb63364
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/zephyr/posix/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fb63364

Please sign in to comment.