aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-09-29 22:00:10 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-09-29 22:00:10 +0000
commit2a0f7575be052cd3b603221ee54a16dc733e7502 (patch)
tree56b33caa1491831d460d88d0cc677aa15d0bc8f7
parent69ab728d7076b9e6e226c65bd7a3d5bd6008264d (diff)
fix minor warnings
-rw-r--r--Display.c4
-rw-r--r--Sgraph.c4
-rw-r--r--spectrogram.c1
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;