From 2a0f7575be052cd3b603221ee54a16dc733e7502 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 29 Sep 2014 22:00:10 +0000 Subject: fix minor warnings --- Display.c | 4 +--- Sgraph.c | 4 ++-- spectrogram.c | 1 - 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Display.c b/Display.c index b2025e3..1212950 100644 --- a/Display.c +++ b/Display.c @@ -43,7 +43,7 @@ DisplayClassRec displayClassRec = { .class_initialize = NULL, .class_part_initialize = NULL, .class_inited = False, - .initialize = NULL, + .initialize = Initialize, .initialize_hook = NULL, .realize = XtInheritRealize, .actions = NULL, @@ -88,8 +88,6 @@ static void Initialize(Widget req, Widget new, ArgList args, Cardinal *num_args) { Trace(new); - new->core.width = 800; - new->core.height = 600; } static XtGeometryResult diff --git a/Sgraph.c b/Sgraph.c index 6a17302..27ff33c 100644 --- a/Sgraph.c +++ b/Sgraph.c @@ -176,8 +176,8 @@ Resize(Widget w) sw->sgraph.size = w->core.width; warnx("win: %dx%d", w->core.width, w->core.height); - warnx("size: %d", sw->sgraph.size); - warnx("samples: %d", sw->sgraph.samples); + warnx("size: %zu", sw->sgraph.size); + warnx("samples: %zu", sw->sgraph.samples); if (sw->sgraph.bg != None) XFreePixmap(XtDisplay(sw), sw->sgraph.bg); diff --git a/spectrogram.c b/spectrogram.c index d9ec780..888cb52 100644 --- a/spectrogram.c +++ b/spectrogram.c @@ -75,7 +75,6 @@ worker(XtPointer p) { Arg arg[10]; int n, size, samples; - double *left, *right; int **data; n = 0; -- cgit v1.2.3