Skip to content

Commit

Permalink
flatpak-proxy: Handle every case in a switch
Browse files Browse the repository at this point in the history
This lets us use -Wswitch-enum to detect when we've missed one.

Signed-off-by: Simon McVittie <[email protected]>
  • Loading branch information
smcv committed Apr 23, 2022
1 parent 9747b56 commit 927824c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions flatpak-proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1785,6 +1785,13 @@ policy_from_handler (BusHandler handler)
case HANDLE_VALIDATE_SEE:
return FLATPAK_POLICY_SEE;

case HANDLE_DENY:
case HANDLE_FILTER_GET_OWNER_REPLY:
case HANDLE_FILTER_HAS_OWNER_REPLY:
case HANDLE_FILTER_NAME_LIST_REPLY:
case HANDLE_HIDE:
case HANDLE_PASS:
case HANDLE_VALIDATE_MATCH:
default:
return FLATPAK_POLICY_NONE;
}
Expand Down

0 comments on commit 927824c

Please sign in to comment.