From 5e3581c977bad0398e929f53f7c7038e946c7552 Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Mon, 10 Sep 2012 15:52:31 +0000 Subject: [PATCH] Fix compile error in pridump.c. With gcc 4.6.3 it's possible to get the following error: $ make gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT pridump.o -MF .pridump.o.d -MP -c -o pridump.o pridump.c pridump.c: In function \u2018pri_bridge\u2019: pridump.c:117:1: error: no return statement in function returning non-void [-Werror=return-type] cc1: all warnings being treated as errors make: *** [pridump.o] Error 1 Changing the function return value to void fixes the issue since there were no places in the code that used the return value. (closes issue PRI-143) Reported by: Birger "WIMPy" Harzenetter Patches: 0001-Fix-no-return-statement-in-function-returning-non-vo.patch (license #5417) patch uploaded by Shaun Ruffell git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@2298 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- pridump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pridump.c b/pridump.c index e199570..f3ac76c 100644 --- a/pridump.c +++ b/pridump.c @@ -80,7 +80,7 @@ static void dump_packet(struct pri *pri, char *buf, int len, int txrx) } -static int pri_bridge(int d1, int d2) +static void pri_bridge(int d1, int d2) { char buf[1024]; fd_set fds;