Skip to content

Commit

Permalink
Fixed all build warnings (SDL1)
Browse files Browse the repository at this point in the history
  • Loading branch information
twojstaryzdomu committed Jul 23, 2022
2 parents 5349a2f + d64cad7 commit 367c9e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ SRCS := $(BB_SRCS) $(JA_SRCS) $(P2_SRCS)
OBJS := $(SRCS:.c=.o)
DEPS := $(SRCS:.c=.d)

CPPFLAGS += -Wall -Wpedantic -MMD $(SDL_CFLAGS) -I. -g
CPPFLAGS += -Wall -Wpedantic -Wno-unused-function -D_GNU_SOURCE -MMD $(SDL_CFLAGS) -I. -g
ifdef X11
CFLAGS += -DHAVE_X11=yes
LDFLAGS += -lX11 -lXrandr
Expand Down
2 changes: 1 addition & 1 deletion message.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ char *_queue[MAX_MESSAGES];
char _buf[MESSAGE_MAX];

struct message_t {
void (*add)(char *format, ...);
void (*add)(const char *format, ...);
char* (*get)();
void (*clear)(char *format, ...);
void (*clear_all)();
Expand Down

0 comments on commit 367c9e8

Please sign in to comment.