Skip to content

Commit

Permalink
Fix uninitialized variable error in some release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Sapd committed Apr 3, 2024
1 parent fc61909 commit 0005a0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ static FeatureResult handle_feature(struct device* device_found, hid_device** de
break;

case NUM_CAPABILITIES:
default:
ret = -99; // silence warning
UNUSED(ret);

Expand Down

0 comments on commit 0005a0a

Please sign in to comment.