diff options
author | Denis Kenzior <denkenz@gmail.com> | 2024-02-27 16:42:16 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2024-02-28 20:59:33 -0600 |
commit | d6196a4840b9c4231ead79e1d4e72cf97a3d5668 (patch) | |
tree | 1c180081916a8b0d116c2455da303f228d61baef | |
parent | 5a37098fa47c7d0951adb677cf22f76fc3161cc4 (diff) | |
download | ofono-d6196a4840b9c4231ead79e1d4e72cf97a3d5668.tar.gz |
dbus: Drop default statement
In case any new ofono_error types are added, make sure the compiler
warns if they're not handled properly.
-rw-r--r-- | src/dbus.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dbus.c b/src/dbus.c index a17517810..6468dc019 100644 --- a/src/dbus.c +++ b/src/dbus.c @@ -455,8 +455,10 @@ DBusMessage *__ofono_error_from_error(const struct ofono_error *error, case OFONO_ERROR_TYPE_ERRNO: return __ofono_map_error(errno_errors_mapping, ABS(error->error), msg); - default: - return __ofono_error_failed(msg); + case OFONO_ERROR_TYPE_SIM: + case OFONO_ERROR_TYPE_NO_ERROR: + case OFONO_ERROR_TYPE_FAILURE: + break; } return __ofono_error_failed(msg); |