Thread (13 messages) 13 messages, 3 authors, 2017-07-17

[PATCH 14/14] [media] fix warning on v4l2_subdev_call() result interpreted as bool

From: arnd@arndb.de (Arnd Bergmann)
Date: 2017-07-14 19:32:29
Also in: dri-devel, linux-ide, linux-media, linux-renesas-soc, lkml

On Fri, Jul 14, 2017 at 3:09 PM, Dan Carpenter [off-list ref] wrote:
On Fri, Jul 14, 2017 at 03:55:26PM +0300, Dan Carpenter wrote:
quoted
I don't agree with it as a static analysis dev...
What I mean is if it's a macro that returns -ENODEV or a function that
returns -ENODEV, they should both be treated the same.  The other
warnings this check prints are quite clever.
I think this is what gcc tries to do, and it should work normally, but it
fails when using ccache. I know I had cases like that, not entirely sure
if this is one of them. Maybe it just means I should give up on using
ccache in preprocessor mode.

       Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help