diff options
| author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-02-08 15:46:22 -0300 |
|---|---|---|
| committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-02-27 10:52:59 -0300 |
| commit | c23107effbfe5300cee216a401009ebbc6e274f4 (patch) | |
| tree | f424f4744d7ae8a0d83e1558fdced94d4783ad85 /rt/mqueue.h | |
| parent | 86889e22db329abac618c6a41f86c84657a15324 (diff) | |
| download | glibc-c23107effbfe5300cee216a401009ebbc6e274f4.tar.xz glibc-c23107effbfe5300cee216a401009ebbc6e274f4.zip | |
debug: Improve mqueue.h fortify warnings with clang
It improve mq_open. The compile and runtime checks have similar
coverage as with GCC.
Checked on aarch64, armhf, x86_64, and i686.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'rt/mqueue.h')
| -rw-r--r-- | rt/mqueue.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/rt/mqueue.h b/rt/mqueue.h index 787cc36df2..d39334ba16 100644 --- a/rt/mqueue.h +++ b/rt/mqueue.h @@ -110,8 +110,7 @@ extern int __REDIRECT (mq_timedsend, (mqd_t __mqdes, #endif /* Define some inlines helping to catch common problems. */ -#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function \ - && defined __va_arg_pack_len +#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function # include <bits/mqueue2.h> #endif |
