X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Fmytypes.h;h=a74705739496ed5781f616d24984046dd1a43b1f;hb=1ccd5f670a432f98e94b384dd169a1a760dced9a;hp=dd88101844384127108e1de066d538e43a8eb4e6;hpb=2f4df477ae05f0b7180fed5531e014f638a18555;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/mytypes.h b/src/src/mytypes.h index dd8810184..a74705739 100644 --- a/src/src/mytypes.h +++ b/src/src/mytypes.h @@ -30,11 +30,13 @@ local_scan.h includes it and exim.h includes them both (to get this earlier). */ the arguments of printf-like functions. This is done by a macro. */ #if defined(__GNUC__) || defined(__clang__) -# define PRINTF_FUNCTION(A,B) __attribute__((format(printf,A,B))) -# define ARG_UNUSED __attribute__((__unused__)) +# define PRINTF_FUNCTION(A,B) __attribute__((format(printf,A,B))) +# define ARG_UNUSED __attribute__((__unused__)) +# define WARN_UNUSED_RESULT __attribute__((__warn_unused_result__)) #else # define PRINTF_FUNCTION(A,B) # define ARG_UNUSED /**/ +# define WARN_UNUSED_RESULT /**/ #endif #ifdef WANT_DEEPER_PRINTF_CHECKS @@ -49,7 +51,7 @@ the standard header files, so we use "uschar". Solaris has u_char in sys/types.h. This is just a typing convenience, of course. */ typedef unsigned char uschar; -typedef int BOOL; +typedef unsigned BOOL; /* We also have SIGNAL_BOOL, which requires signal.h be included, so is defined elsewhere */