Skip to content

Commit

Permalink
remove warnings for the demo
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed Oct 7, 2024
1 parent 78befc9 commit 44d5e4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ endif

examples/microui_demo/microui_demo: examples/microui_demo/microui_demo.c RGFW.h
ifneq ($(CC), emcc)
$(CC) $(CFLAGS) $(WARNINGS) -I. $< $(LIBS) $(LINK_GL1) -o $@$(EXT)
$(CC) $(CFLAGS) -I. $< $(LIBS) $(LINK_GL1) -o $@$(EXT)
else
$(CC) $(CFLAGS) $(WARNINGS) -I. $< -s USE_WEBGL2 $(LIBS) $(LINK_GL1) -o $@$(EXT)
$(CC) $(CFLAGS) -I. $< -s USE_WEBGL2 $(LIBS) $(LINK_GL1) -o $@$(EXT)
endif

examples/gl33/gl33: examples/gl33/gl33.c RGFW.h
Expand Down
2 changes: 0 additions & 2 deletions examples/microui_demo/microui_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ int main(int argc, char **argv) {

case RGFW_mouseButtonPressed:
mu_input_scroll(ctx, 0, window->event.scroll * -30);
__attribute__((fallthrough));
case RGFW_mouseButtonReleased: {
int b = button_map[window->event.button & 0xff];
if (b && window->event.type == RGFW_mouseButtonPressed) { mu_input_mousedown(ctx, window->event.point.x, window->event.point.y , b); }
Expand All @@ -271,7 +270,6 @@ int main(int argc, char **argv) {
char str[2] = {'\0', '\0'};
str[0] = RGFW_keyCodeToCharAuto(window->event.keyCode, window->event.lockState);
mu_input_text(ctx, str);
__attribute__((fallthrough));
}
case RGFW_keyReleased: {
int c = key_map[window->event.keyCode & 0xff];
Expand Down

0 comments on commit 44d5e4d

Please sign in to comment.