search for: 36fce20

Displaying 4 results from an estimated 4 matches for "36fce20".

Did you mean: 36fc202
2019 Jan 02
0
[PATCH nbdkit v2 2/2] include: Only use attribute((format)) on GCC or Clang.
...9;t support attribute((format)), a non-standard C extension. Note that we still require GCC or Clang for compiling nbdkit. --- include/nbdkit-common.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/include/nbdkit-common.h b/include/nbdkit-common.h index 27f6ed1..36fce20 100644 --- a/include/nbdkit-common.h +++ b/include/nbdkit-common.h @@ -45,6 +45,13 @@ extern "C" { #endif +#if defined(__GNUC__) || defined(__clang__) +#define ATTRIBUTE_FORMAT_PRINTF(fmtpos, argpos) \ + __attribute__((__format__ (__printf__, fmtpos, argpos))) +#else +#define ATTRIBU...
2019 Jan 14
0
[PATCH nbdkit 1/2] include: Fix NBDKIT_HANDLE_NOT_NEEDED for C90 compilers.
...ctures code and data pointers were incompatible. We only need a convenient global data pointer here, and the address of ‘errno’ should be fine. --- include/nbdkit-common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/nbdkit-common.h b/include/nbdkit-common.h index 36fce20..cb9954e 100644 --- a/include/nbdkit-common.h +++ b/include/nbdkit-common.h @@ -40,6 +40,7 @@ #include <stdarg.h> #include <stdint.h> +#include <errno.h> #ifdef __cplusplus extern "C" { @@ -78,7 +79,7 @@ extern char *nbdkit_realpath (const char *path); /* A stat...
2019 Jan 14
4
[PATCH nbdkit 0/2] tests: Test that public headers are ANSI (ISO C90) compatible.
We previously discussed allowing the plugin API to be consumed by non-GCC/non-Clang/old compilers. This implements a test. Rich.
2019 Jan 02
4
[PATCH nbdkit v2 0/2] Use of attribute(()).
v1 was here: https://www.redhat.com/archives/libguestfs/2019-January/msg00008.html In v2 I have provided two patches: The first patch extends attribute((nonnull)) to most internal functions, but not to the external API. The second patch uses a macro so that attribute((format)) is only used in the public API on GCC or Clang. At least in theory these headers could be used by a C compiler which