diff --git a/Makefile b/Makefile index 949dd1e..7d37246 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ VERSION = 0.0 PREFIX = /usr/local MANPREFIX = $(PREFIX)/share/man -CFLAGS = `pkg-config --cflags gtk4` -std=c99 -Wall -Wextra -g -O0 # -pedantic +CFLAGS = `pkg-config --cflags gtk4` -std=c99 -Wall -Wextra -g -O0 LDFLAGS = `pkg-config --libs gtk4` -lm -lpthread CC = gcc diff --git a/visor.c b/visor.c index 19d5645..b882987 100644 --- a/visor.c +++ b/visor.c @@ -70,7 +70,6 @@ void color_lookup(int *r, int *g, int *b, double mu); void *writer_thread(void *arg) { struct threadInfo *info = arg; - int32_t index = info->index; while (true) { pthread_mutex_lock(&pixmapMutex); while (!pixmapAvailable || info->complete) { @@ -327,6 +326,10 @@ static void app_activate(GApplication *app) void draw_plane(GtkDrawingArea *da, cairo_t *cr, int width, int height, gpointer data) { + (void) da; + (void) width; + (void) height; + (void) data; cairo_set_source_surface(cr, surface, 0, 0); cairo_paint(cr); }