]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: quic: Fix build for m68k cross-compilation
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 18 Oct 2022 09:57:01 +0000 (11:57 +0200)
committerFrédéric Lécaille <flecaille@haproxy.com>
Tue, 18 Oct 2022 10:04:10 +0000 (12:04 +0200)
commitea492e3e471a18c2ff8760c66141c51a7ee99780
tree29be80c45eb143912d7e90a5d1395d4ac5aa47d6
parentba303deadc3249e6df111c70eab23007244ed0bb
BUILD: quic: Fix build for m68k cross-compilation

Fix several warinings as this one:

src/qmux_trace.c:80:45: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘uint64_t’ {aka ‘const long long unsigned int’} [-Werror=format=]
   80 |    chunk_appendf(&trace_buf, " qcs=%p .id=%lu .st=%s",
      |                                           ~~^
      |                                             |
      |                                             long unsigned int
      |                                           %llu
   81 |                  qcs, qcs->id,
      |                       ~~~~~~~
      |                          |
      |                          uint64_t {aka const long long unsigned int}
compilation terminated due to -Wfatal-errors.

Cast remaining uint64_t variables as ullong with %llu as printf format and size_t
others as ulong with %lu as printf format.

Thank you to Ilya for having reported this issue in GH #1899.

Must be backported to 2.6
src/qmux_trace.c