[RTEMS Project] #4662: Fix GCC 12 warnings
RTEMS trac
trac at rtems.org
Mon Jun 20 00:39:36 UTC 2022
#4662: Fix GCC 12 warnings
-------------------------+---------------------
Reporter: Chris Johns | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone: 6.1
Component: tool/gcc | Version: 6
Severity: blocker | Resolution:
Keywords: | Blocked By:
Blocking: |
-------------------------+---------------------
Comment (by Chris Johns):
The `rtems/test.h` code has a few warnings that are confusing:
{{{
In file included from ../../../testsuites/libtests/ttest01/test-leak.c:1:
../../../cpukit/include/rtems/test.h: In function
'T_case_body_missing_free':
../../../cpukit/include/rtems/test.h:225:9: warning: 'p' may be used
uninitialized [-Wmaybe-uninitialized]
225 | T_check_not_null(&T_check_instance, a);
\
| ^~~~~~~~~~~~~~~~
../../../cpukit/include/rtems/test.h:219:6: note: by argument 2 of type
'const void *' to 'T_check_not_null' declared here
219 | void T_check_not_null(const T_check_context_msg *, const void *);
| ^~~~~~~~~~~~~~~~
}}}
There are some more. Why does the code have tabs? It makes it difficult to
update.
--
Ticket URL: <http://devel.rtems.org/ticket/4662#comment:4>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list