aboutsummaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2018-01-05 23:30:41 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2018-01-05 23:30:41 +0900
commit98f4e72f1ae492771a755bf86c88da7c21f20720 (patch)
treeb1c85eadbe23432f956bc3377ea88a8449672175 /gtk
parentdf6915f07e6cc13600a750b4fb4a8adf482b45f2 (diff)
removed most compiler warnings
Diffstat (limited to 'gtk')
-rw-r--r--gtk/oscilloview-gl.c3
1 files changed, 3 insertions, 0 deletions
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)) {