From 82f5329372b6ff34407cea120fad57d18407c459 Mon Sep 17 00:00:00 2001 From: Gabriel M. Beddingfield Date: Tue, 28 Sep 2010 07:34:36 -0500 Subject: [PATCH 2/2] main: Suppress printf() compiler warning about sizeof() return type. Compiler was complaining that %ld and sizeof(event) [unsigned] were a mismatch. Worked around by making printf() look for an unsigned, and casting it to a longer integer. --- boxyseq_gui/main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/boxyseq_gui/main.c b/boxyseq_gui/main.c index 5110290..d668081 100644 --- a/boxyseq_gui/main.c +++ b/boxyseq_gui/main.c @@ -176,7 +176,7 @@ printf("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n"); jackdata_shutdown(jd); - printf("sizeof(event):%ld\n",sizeof(event)); + printf("sizeof(event):%lu\n", (unsigned long int)sizeof(event)); jackdata_free(jd); -- 1.7.0.4