diff options
author | Guido Günther <agx@sigxcpu.org> | 2016-07-21 11:31:59 +0200 |
---|---|---|
committer | James Hilliard <james.hilliard1@gmail.com> | 2021-11-29 21:28:23 -0700 |
commit | a4f58a9bfb57bf65f5e2175a0f407fb54b7be3c6 (patch) | |
tree | c308d7f1d1714ee5d0dce155f9d8a8c5d1ae502c | |
parent | 151fbac90f62f959ccc648d4f73ca6aafc8f8e6a (diff) |
Add default statements to silence compiler warnings
cups-pk-helper-mechanism.c: In function ‘cph_mechanism_job_set_hold_until’:
cups-pk-helper-mechanism.c:1402:9: error: switch missing default case
[-Werror=switch-default]
switch (job_status) {
^
cc1: all warnings being treated as errors
-rw-r--r-- | src/cups-pk-helper-mechanism.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cups-pk-helper-mechanism.c b/src/cups-pk-helper-mechanism.c index 0e07349..18534e9 100644 --- a/src/cups-pk-helper-mechanism.c +++ b/src/cups-pk-helper-mechanism.c @@ -1300,6 +1300,8 @@ cph_mechanism_job_cancel_purge (CphIfaceMechanism *object, _cph_mechanism_return_error (mechanism, TRUE)); goto out; } + default: + g_warning("Invalid value in enum"); } ret = cph_cups_job_cancel (mechanism->priv->cups, id, purge, user_name); @@ -1364,6 +1366,8 @@ cph_mechanism_job_restart (CphIfaceMechanism *object, _cph_mechanism_return_error (mechanism, TRUE)); goto out; } + default: + g_warning("Invalid value in enum"); } ret = cph_cups_job_restart (mechanism->priv->cups, id, user_name); @@ -1419,6 +1423,8 @@ cph_mechanism_job_set_hold_until (CphIfaceMechanism *object, _cph_mechanism_return_error (mechanism, TRUE)); goto out; } + default: + g_warning("Invalid value in enum"); } ret = cph_cups_job_set_hold_until (mechanism->priv->cups, id, job_hold_until, user_name); |