Re: [PATCH 10/10] compiler: Remove uninitialized_var() macro

From
Bart Van Assche <bvanassche@acm.org>
Date
2020-06-04 00:00:40
Also in
linux-block, linux-clk, linux-ide, linux-mm, linux-spi, linux-wireless, lkml
Reply to
Kees Cook, 2020-06-03
On 2020-06-03 16:32, Kees Cook wrote:
Using uninitialized_var() is dangerous as it papers over real bugs[1]
(or can in the future), and suppresses unrelated compiler warnings
(e.g. "unused variable"). If the compiler thinks it is uninitialized,
either simply initialize the variable or make compiler changes.
Thank you for having done this work!

Reviewed-by: Bart van Assche <bvanassche@acm.org>
Thread (51 messages) 51 messages, 12 authors, last reply 2020-06-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help