RTEMS | cpukit/include/rtems/confdefs: Improved comments on the #pragmas to ignore warnings issue (!1208)

Samuel Viegas (@samuel.viegas) gitlab at rtems.org
Tue Apr 21 10:43:23 UTC 2026




Samuel Viegas commented on a discussion on cpukit/include/rtems/confdefs/inittask.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1208#note_148843

 >  #endif
 >  
 >  /*
 > - * Ignore the following warnings from g++ and clang in the uses of
 > - * _CONFIGURE_ASSERT_NOT_NULL() 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]
 > +  * _CONFIGURE_ASSERT_NOT_NULL is used to validate function pointers at

I added the description of `_CONFIGURE_ASSERT_NOT_NULL()` to the macro definition in doxygen format, and I left the precise warning messages as you mentioned.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1208#note_148843
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/20260421/f7588bb4/attachment-0001.htm>


More information about the bugs mailing list