From 98f4e72f1ae492771a755bf86c88da7c21f20720 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Fri, 5 Jan 2018 23:30:41 +0900 Subject: removed most compiler warnings --- gtk/oscilloview-gl.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gtk/oscilloview-gl.c') diff --git a/gtk/oscilloview-gl.c b/gtk/oscilloview-gl.c index 40d6813..01e7808 100644 --- a/gtk/oscilloview-gl.c +++ b/gtk/oscilloview-gl.c @@ -27,6 +27,7 @@ static struct { static void on_glarea_unrealize(GtkWidget *w, gpointer ptr) { (void)w; + (void)ptr; GtkGLArea *area = GTK_GL_AREA(w); gtk_gl_area_make_current(area); if (gtk_gl_area_get_error(area)) return; @@ -118,6 +119,8 @@ static void on_realize(GtkWidget *w, gpointer ptr) { static gboolean on_render(GtkGLArea *area, GdkGLContext *ctx, gpointer ptr) { + (void)area; + (void)ctx; (void)ptr; if (!atomic_flag_test_and_set_explicit( &oscilloview_g.flag, memory_order_acquire)) { -- cgit v1.2.3