diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2021-06-21 20:24:02 +0200 |
---|---|---|
committer | Sander Vrijders <sander@ouroboros.rocks> | 2021-06-23 08:36:44 +0200 |
commit | ac53f8ea09b9a24321bc2c00832ba8a117115134 (patch) | |
tree | 082ee03360800ab2021e6dc2409e67515b7d3296 | |
parent | 017172282b358e3fc79c9bc4c47f3193a8005f27 (diff) | |
download | ouroboros-ac53f8ea09b9a24321bc2c00832ba8a117115134.tar.gz ouroboros-ac53f8ea09b9a24321bc2c00832ba8a117115134.zip |
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 <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
-rw-r--r-- | src/ipcpd/shim-data.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) |