From 6630f2acd399cb302bd9990ac70355e5c67d40d4 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Tue, 6 Aug 2019 20:06:02 +0300 Subject: [PATCH] shared/: Please compiler when passed certain compile flags Fixes the following warn/error when using combination of flags like building with debug, when disabling optimization and/or when enabling ASAN: ../shared/option-parser.c:61:1: error: control reaches end of non-void function [-Werror=return-type] Signed-off-by: Marius Vlad --- shared/option-parser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/shared/option-parser.c b/shared/option-parser.c index 795195f5..c1c7b9c8 100644 --- a/shared/option-parser.c +++ b/shared/option-parser.c @@ -57,6 +57,7 @@ handle_option(const struct weston_option *option, char *value) return true; default: assert(0); + return false; } }