fix: msgpack requires limits.h for UINT_MAX
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 5 Aug 2021 20:49:26 +0000 (16:49 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 7 Mar 2022 20:06:37 +0000 (15:06 -0500)
Building with '-Wundef' reveals this issue :

  unpack.c: In function ‘template_callback_array’:
  unpack.c:197:17: warning: "UINT_MAX" is not defined, evaluates to 0 [-Wundef]
    197 | #if SIZE_MAX == UINT_MAX
        |                 ^~~~~~~~
  unpack.c: In function ‘template_callback_map’:
  unpack.c:241:17: warning: "UINT_MAX" is not defined, evaluates to 0 [-Wundef]
    241 | #if SIZE_MAX == UINT_MAX
        |                 ^~~~~~~~

Change-Id: I7dadd9f7013d613509f66e67ff1beb8ae593d2bf
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/vendor/msgpack/lttng-config.h

index 073bf8da591bde77777bd95b88646265780d1567..62258233df24ef6d12348141afee8ecfdaaff74e 100644 (file)
@@ -8,6 +8,7 @@
 #ifndef MSGPACK_LTTNG_CONFIG_H
 #define MSGPACK_LTTNG_CONFIG_H
 
+#include <limits.h>
 #include <common/compat/endian.h>
 
 #if __BYTE_ORDER == __LITTLE_ENDIAN
This page took 0.036152 seconds and 4 git commands to generate.