fix(common): ignore the unused function return value

This corrects the MISRA violation C2012-17.7:
The value returned by a function having non-void return type shall
be used.
Typecast the function call to void to discard the return value.

Change-Id: I7cfb11bb34bc44a4985d30d37d8cce4b8d241652
Signed-off-by: Nithin G <nithing@amd.com>
Signed-off-by: Maheedhar Bollapalli <maheedharsai.bollapalli@amd.com>
This commit is contained in:
Maheedhar Bollapalli 2024-04-22 17:54:50 +05:30
parent 0839cfc980
commit fc7a7208e0

View file

@ -61,7 +61,7 @@ void tf_log_newline(const char log_fmt[2])
return;
}
putchar('\n');
(void)putchar((int32_t)'\n');
}
/*