coccicnelle: Ignore return of memset
The return of memset is never checked. This patch explicitly ignore the return to avoid MISRA-C violations. The only directory excluded directory was ext/* since it contains only imported code. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
5884c7f54b
commit
da49f2e440
220 changed files with 577 additions and 550 deletions
|
@ -39,7 +39,8 @@ void __attribute__((section(".iram1"))) __start(void)
|
|||
: "r"(&_init_start));
|
||||
|
||||
/* Zero out BSS. Clobber _bss_start to avoid memset() elision. */
|
||||
memset(&_bss_start, 0, (&_bss_end - &_bss_start) * sizeof(_bss_start));
|
||||
(void)memset(&_bss_start, 0,
|
||||
(&_bss_end - &_bss_start) * sizeof(_bss_start));
|
||||
__asm__ __volatile__ (
|
||||
""
|
||||
:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue