Clean up compiler warnings

This commit is contained in:
Petar Kapriš 2025-10-12 17:11:45 +01:00
parent ea699e5c48
commit 9b19884286
2 changed files with 5 additions and 2 deletions

View file

@ -3,7 +3,7 @@ VERSION = 0.0
PREFIX = /usr/local PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man 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 LDFLAGS = `pkg-config --libs gtk4` -lm -lpthread
CC = gcc CC = gcc

View file

@ -70,7 +70,6 @@ void color_lookup(int *r, int *g, int *b, double mu);
void *writer_thread(void *arg) void *writer_thread(void *arg)
{ {
struct threadInfo *info = arg; struct threadInfo *info = arg;
int32_t index = info->index;
while (true) { while (true) {
pthread_mutex_lock(&pixmapMutex); pthread_mutex_lock(&pixmapMutex);
while (!pixmapAvailable || info->complete) { 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 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_set_source_surface(cr, surface, 0, 0);
cairo_paint(cr); cairo_paint(cr);
} }