mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Fix compiler warnings when compiling patience diff module
This commit is contained in:
parent
9355dd7668
commit
2f35ca7ca5
@ -50,7 +50,7 @@
|
||||
* causing <https://bugs.launchpad.net/bzr/+bug/511267> and
|
||||
* <https://bugs.launchpad.net/bzr/+bug/331095>. 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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user