RTEMS | cpukit/include/rtems/confdefs: Improved comments on the #pragmas to ignore warnings issue (!1208)
Sebastian Huber (@sebhub)
gitlab at rtems.org
Wed Apr 22 09:55:03 UTC 2026
Sebastian Huber started a new discussion on cpukit/include/rtems/confdefs/inittask.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1208#note_148891
>
> /*
> * Ignore the following warnings from g++ and clang in the uses of
> - * _CONFIGURE_ASSERT_NOT_NULL() below:
> + * _CONFIGURE_ASSERT_NOT_NULL() because they are a by-product of the
> + * assertion and not a real defect. See examples below:
> *
> * warning: the address of 'void Init()' will never be NULL [-Waddress]
> *
> - * warning: comparison of function 'Init' not equal to a null pointer is always
> - * true [-Wtautological-pointer-compare]
> + * warning: comparison of function 'Init' not equal to a null pointer
> + * is always true [-Wtautological-pointer-compare]
> + *
> + * Additionally, -Wpragmas is suppressed since some toolchains may not
toolchains -> compiler
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1208#note_148891
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260422/e2cb3980/attachment.htm>
More information about the bugs
mailing list