X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Fmytypes.h;h=954f683c828bf0dbd7ac58f200eec2c618026b4a;hb=31c546c4d0c3baf1b1e0ab292b4d096cffe64c34;hp=38ee93d8ca034276ea6eaa9f65562e737f11181b;hpb=780ea2a5cc313ee12c0ad7823b03feae17c3b08b;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/mytypes.h b/src/src/mytypes.h index 38ee93d8c..954f683c8 100644 --- a/src/src/mytypes.h +++ b/src/src/mytypes.h @@ -2,9 +2,10 @@ * Exim - an Internet mail transport agent * *************************************************/ +/* Copyright (c) The Exim Maintainers 2020 - 2022 */ /* Copyright (c) University of Cambridge 1995 - 2018 */ -/* Copyright (c) The Exim Maintainers 2020 */ /* See the file NOTICE for conditions of use and distribution. */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ /* This header file contains type definitions and macros that I use as @@ -39,12 +40,18 @@ so we have to give up on all of the available parameter checking. */ # define PRINTF_FUNCTION(A,B) __attribute__((format(printf,A,B))) # endif # define ARG_UNUSED __attribute__((__unused__)) +# define FUNC_MAYBE_UNUSED __attribute__((__unused__)) # define WARN_UNUSED_RESULT __attribute__((__warn_unused_result__)) # define ALLOC __attribute__((malloc)) -# define ALLOC_SIZE(A) __attribute__((alloc_size(A))) # define NORETURN __attribute__((noreturn)) +# ifndef __clang__ +# define ALLOC_SIZE(A) __attribute__((alloc_size(A))) +# else +# define ALLOC_SIZE(A) /**/ +# endif #else # define ARG_UNUSED /**/ +# define FUNC_MAYBE_UNUSED /**/ # define WARN_UNUSED_RESULT /**/ # define ALLOC /**/ # define ALLOC_SIZE(A) /**/