aboutsummaryrefslogtreecommitdiff
path: root/rt/mqueue.h
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-02-08 15:46:22 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-02-27 10:52:59 -0300
commitc23107effbfe5300cee216a401009ebbc6e274f4 (patch)
treef424f4744d7ae8a0d83e1558fdced94d4783ad85 /rt/mqueue.h
parent86889e22db329abac618c6a41f86c84657a15324 (diff)
downloadglibc-c23107effbfe5300cee216a401009ebbc6e274f4.zip
glibc-c23107effbfe5300cee216a401009ebbc6e274f4.tar.gz
glibc-c23107effbfe5300cee216a401009ebbc6e274f4.tar.bz2
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.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/rt/mqueue.h b/rt/mqueue.h
index 787cc36..d39334b 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