[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130603195816.164fd623@nehalam.linuxnetplumber.net>
Date: Mon, 3 Jun 2013 19:58:16 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: Andreas Henriksson <andreas@...al.se>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] iproute2: fix build failure on sparc due to -Wformat
and tv_usec
On Sat, 18 May 2013 18:18:51 +0200
Andreas Henriksson <andreas@...al.se> wrote:
> tv_usec is "suseconds_t" which is apparently usually
> a signed long, but sometimes not....
> Change the printf modifier to use signed and
> cast the tv_usec to long in case it's not already long.
>
> gcc -Wall -Wstrict-prototypes -Werror -Wmissing-prototypes -Wmissing-declarations -Wold-style-definition -O2 -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib\" -DCONFDIR=\"/etc/iproute2\" -D_GNU_SOURCE -fPIC -c -o utils.o utils.c
> utils.c: In function 'print_timestamp':
> utils.c:802:2: error: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type '__suseconds_t' [-Werror=format]
> cc1: all warnings being treated as errors
>
> Signed-off-by: Andreas Henriksson <andreas@...al.se>
>
Applied, seems like a wierd Sparc/Solaris legacy issue.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists