From ac53f8ea09b9a24321bc2c00832ba8a117115134 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Mon, 21 Jun 2021 20:24:02 +0200 Subject: ipcpd: Add missing default for switch in shim-data There was a switch-case without a default, causing some compiler warnings. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/ipcpd/shim-data.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/ipcpd/shim-data.c b/src/ipcpd/shim-data.c index add7fb6b..ade157ce 100644 --- a/src/ipcpd/shim-data.c +++ b/src/ipcpd/shim-data.c @@ -74,6 +74,9 @@ static void destroy_dir_query(struct dir_query * query) case QUERY_DESTROY: pthread_mutex_unlock(&query->lock); return; + default: + assert(false); + return; } while (query->state != QUERY_DONE) -- cgit v1.2.3