Skip to content

Commit

Permalink
Fix warning enumeration value not handled in switch (#81)
Browse files Browse the repository at this point in the history
* fix unused-parameter warning in samples

* Revert "fix unused-parameter warning in samples"

This reverts commit 5f6319a.

* fixed warning unhandled enumeration value in switch

* formatting
  • Loading branch information
Bogumil-Sapinski-Mobica committed Sep 12, 2023
1 parent 93cf3cd commit bc75680
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions samples/extensions/khr/conway/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ void Conway::event(const sf::Event& event)
animating = !animating;
}
break;
default: break;
}
}

Expand Down
1 change: 1 addition & 0 deletions samples/extensions/khr/nbody/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ void NBody::event(const sf::Event& event)
dist = abs(dist);
needMatrixReset = true; // view matrix need to be recalculated
break;
default: break;
}
}

Expand Down

0 comments on commit bc75680

Please sign in to comment.