[Varnish] #1432: Another build error on OS X

Varnish varnish-bugs at varnish-cache.org
Wed Feb 12 20:07:45 CET 2014


#1432: Another build error on OS X
--------------------+---------------------
 Reporter:  perbu   |      Owner:
     Type:  defect  |     Status:  new
 Priority:  normal  |  Milestone:
Component:  build   |    Version:  unknown
 Severity:  normal  |   Keywords:
--------------------+---------------------
 {{{
 $ ./autogen.des && ./configure && make -j9
 (..)
 Making all in varnishstat
   CC       varnishstat.o
 varnishstat.c:68:37: error: format specifies type 'uintmax_t' (aka
 'unsigned long') but the argument has type 'uint64_t' (aka 'unsigned long
 long') [-Werror,-Wformat]
         printf("\t\t<value>%ju</value>\n", val);
                            ~~~             ^~~
                            %llu
 varnishstat.c:122:29: error: format specifies type 'uintmax_t' (aka
 'unsigned long') but the argument has type 'uint64_t' (aka 'unsigned long
 long') [-Werror,-Wformat]
         printf("\"value\": %ju, ", val);
                            ~~~     ^~~
                            %llu
 varnishstat.c:183:31: error: format specifies type 'uintmax_t' (aka
 'unsigned long') but the argument has type 'uint64_t' (aka 'unsigned long
 long') [-Werror,-Wformat]
                 printf("%12ju %12.2f %s\n", val, val / op->up,
 pt->desc->sdesc);
                         ~~~~~               ^~~
                         %12llu
 varnishstat.c:185:29: error: format specifies type 'uintmax_t' (aka
 'unsigned long') but the argument has type 'uint64_t' (aka 'unsigned long
 long') [-Werror,-Wformat]
                 printf("%12ju %12s %s\n", val, ".  ", pt->desc->sdesc);
                         ~~~~~             ^~~
                         %12llu
 4 errors generated.
 make[3]: *** [varnishstat.o] Error 1
 }}}

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1432>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list