Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ii8 committed Apr 13, 2023
1 parent 5529664 commit 6b58ba8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ WAYLAND_SCANNER := wayland-scanner
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin

VERSION="0.4.0-git"
VERSION="0.5.0"

CFLAGS ?= -Wall -Wextra -Wno-unused-parameter -Wno-parentheses
CFLAGS ?= -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-format-overflow
override CFLAGS += -DVERSION=\"$(VERSION)\"

VPATH=$(WAYLAND_PROTOCOLS_DIR)/stable/xdg-shell:$(WAYLAND_PROTOCOLS_DIR)/unstable/xdg-decoration
Expand Down
17 changes: 15 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ int font_init(int, char *, int *, int *);
void font_deinit(void);
unsigned char *get_glyph(uint32_t, uint32_t, int);

static void noop()
{
}

enum deco {
DECO_AUTO,
DECO_SERVER,
Expand Down Expand Up @@ -1266,7 +1270,10 @@ static struct wl_pointer_listener ptr_listener = {
ptr_frame,
ptr_axis_source,
ptr_axis_stop,
ptr_axis_discrete
ptr_axis_discrete,
#ifdef WL_POINTER_AXIS_VALUE120_SINCE_VERSION
noop,
#endif
};

static void seat_capabilities(void *data, struct wl_seat *seat, uint32_t caps)
Expand Down Expand Up @@ -1427,7 +1434,13 @@ static void toplvl_close(void *data, struct xdg_toplevel *t)

static const struct xdg_toplevel_listener toplvl_listener = {
toplvl_configure,
toplvl_close
toplvl_close,
#ifdef XDG_TOPLEVEL_CONFIGURE_BOUNDS_SINCE_VERSION
noop,
#endif
#ifdef XDG_TOPLEVEL_WM_CAPABILITIES_SINCE_VERSION
noop,
#endif
};

static void configure(void *d, struct xdg_surface *surf, uint32_t serial)
Expand Down
2 changes: 1 addition & 1 deletion tsm/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CFLAGS ?= -Wall -Wextra -Wno-unused-parameter -Wno-parentheses
CFLAGS ?= -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-format-overflow

OBJ=wcwidth.o shl-htable.o\
tsm-render.o tsm-screen.o tsm-selection.o\
Expand Down

0 comments on commit 6b58ba8

Please sign in to comment.