diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2022-02-17 02:35:44 +0000 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2022-02-22 15:28:34 +0100 |
commit | 4b1b49bdc0d4afce92eb807222b446bcba6216a5 (patch) | |
tree | 2f1337600b1ba6d852741597a4aa2f81b2701c3a | |
parent | 1123a3d41c3dd5b1b0a9abe731178d8202cf3fc4 (diff) | |
download | gnome-bluetooth-4b1b49bdc0d4afce92eb807222b446bcba6216a5.tar.gz |
lib: Fix syntax error on clang and older gcc
On gcc < 11 and any version of clang (tested up to 13),
the build would fail with the following error:
error: label at end of compound statement
GCC 11+ seems to only complain with -Werror -Wpedantic,
otherwise it tolerates even completely empty default: case.
-rw-r--r-- | lib/bluetooth-utils.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/bluetooth-utils.c b/lib/bluetooth-utils.c index aafbbf08..4a208c58 100644 --- a/lib/bluetooth-utils.c +++ b/lib/bluetooth-utils.c @@ -94,10 +94,8 @@ bluetooth_type_to_string (BluetoothType type) case BLUETOOTH_TYPE_SPEAKERS: return _("Speakers"); default: - /* fallthrough */ + return _("Unknown"); } - - return _("Unknown"); } /** |