From 6a4fd26d3cea02c59d337933458f0eb77b3dcacc Mon Sep 17 00:00:00 2001 From: cgzones Date: Fri, 21 Feb 2014 17:52:08 +0100 Subject: [PATCH] ignore warning about assignment in condition --- src/headers/shared.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/headers/shared.h b/src/headers/shared.h index 3055ef641..7ceef5825 100755 --- a/src/headers/shared.h +++ b/src/headers/shared.h @@ -177,15 +177,15 @@ char *__local_name; /*** These functions will exit on error. No need to check return code ***/ /* for calloc: x = calloc(4,sizeof(char)) -> os_calloc(4,sizeof(char),x) */ -#define os_calloc(x,y,z) (z = calloc(x,y))?(void)1:ErrorExit(MEM_ERROR, ARGV0) +#define os_calloc(x,y,z) ((z = calloc(x,y)))?(void)1:ErrorExit(MEM_ERROR, ARGV0) -#define os_strdup(x,y) (y = strdup(x))?(void)1:ErrorExit(MEM_ERROR, ARGV0) +#define os_strdup(x,y) ((y = strdup(x)))?(void)1:ErrorExit(MEM_ERROR, ARGV0) -#define os_malloc(x,y) (y = malloc(x))?(void)1:ErrorExit(MEM_ERROR, ARGV0) +#define os_malloc(x,y) ((y = malloc(x)))?(void)1:ErrorExit(MEM_ERROR, ARGV0) #define os_free(x) (x)?free(x):merror("free a null") -#define os_realloc(x,y,z) (z = realloc(x,y))?(void)1:ErrorExit(MEM_ERROR, ARGV0) +#define os_realloc(x,y,z) ((z = realloc(x,y)))?(void)1:ErrorExit(MEM_ERROR, ARGV0) #define os_clearnl(x,p) if((p = strrchr(x, '\n')))*p = '\0'; @@ -228,5 +228,5 @@ char *__local_name; #endif /* __SHARED_H */ - + /* EOF */