From 0d916c7f96e3ade4ea3dd19041e3f157ac2ef423 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 11 May 2014 16:12:48 +0200 Subject: build: removed undefined behavior from PVR check This shouldn't matter, but it's probably better if the code to check is valid - otherwise an extremely clever compiler might fail to compile it, and the feature would be misdetected. (Probably.) Found by cppcheck. --- waftools/fragments/pvr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'waftools/fragments') diff --git a/waftools/fragments/pvr.c b/waftools/fragments/pvr.c index be301e11e5..5b8555f4e3 100644 --- a/waftools/fragments/pvr.c +++ b/waftools/fragments/pvr.c @@ -3,5 +3,5 @@ int main(void) { struct v4l2_ext_controls ext; - return ext.controls->value; + return !!&ext.controls->value; } -- cgit v1.2.3