From 6995fc0f96ee59151703f0d947eb7cccb409a3ac Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Thu, 11 Oct 2018 14:52:27 -0700 Subject: [PATCH] queue: clean up a covered switch clang objects to the `default` case in a covered switch: src/queue.c:1127:2: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default] Remove the label, relying on the covered switch to catch the issue. --- src/queue.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/queue.c b/src/queue.c index f78cb17a5..6c7593fca 100644 --- a/src/queue.c +++ b/src/queue.c @@ -1124,8 +1124,6 @@ _dispatch_qos_class_valid(dispatch_qos_class_t qos_class, int relative_priority) case QOS_CLASS_USER_INTERACTIVE: case QOS_CLASS_UNSPECIFIED: break; - default: - return false; } if (relative_priority > 0 || relative_priority < QOS_MIN_RELATIVE_PRIORITY){ return false;