summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2020-01-10 00:08:35 -0800
committerMatt Ranostay <matt.ranostay@konsulko.com>2020-01-10 00:08:35 -0800
commita777ad7e0950e9d53f37fbceb8fb358eeb92965a (patch)
treeaabdcef6f622d6e83ab7ee03083a0e7fc645900f
parent93840f7fa2f23d10e0b5fef1562e47f16591a2fd (diff)
binding: hvac: fix -Wreturn-type warning
[ 40%] Building C object binding/CMakeFiles/afm-hvac-binding.dir/hvac-demo-binding.c.o agl-service-hvac/binding/hvac-demo-binding.c: In function ‘bindingServicePreInit’: agl-service-hvac/binding/hvac-demo-binding.c:707:1: warning: no return statement in function returning non-void [-Wreturn-type] 707 | } Bug-AGL: SPEC-2984 Change-Id: I074836fef1c5378172b7d3cf60af4950aabb2f56 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
-rw-r--r--binding/hvac-demo-binding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binding/hvac-demo-binding.c b/binding/hvac-demo-binding.c
index da007ec..47223e7 100644
--- a/binding/hvac-demo-binding.c
+++ b/binding/hvac-demo-binding.c
@@ -703,7 +703,7 @@ static int bindingServicePreInit(afb_api_t api)
if(parse_config() != 0)
AFB_WARNING("Default values are being used!\n");
- open_can_dev();
+ return open_can_dev();
}
static int bindingServiceInit(afb_api_t api)