From 2f35ca7ca52a9a6e851239ddaaace2d73895e2d9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 23 Aug 2017 07:49:45 +0530 Subject: [PATCH] Fix compiler warnings when compiling patience diff module --- src/calibre/gui2/tweak_book/diff/_patiencediff_c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/diff/_patiencediff_c.c b/src/calibre/gui2/tweak_book/diff/_patiencediff_c.c index 6af903376a..0554acb6ec 100644 --- a/src/calibre/gui2/tweak_book/diff/_patiencediff_c.c +++ b/src/calibre/gui2/tweak_book/diff/_patiencediff_c.c @@ -50,7 +50,7 @@ * causing and * . On glibc it passes, but * let's make it fail to aid testing. */ -#define guarded_malloc(x) ( (x) ? malloc(x) : NULL ) +static inline void* guarded_malloc(size_t x) { return x ? malloc(x) : NULL; } enum { OP_EQUAL = 0,