X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/2fcadc1dcdd70a5f87725857976cc9a01efa3e25..1d28cc061677bd07d9bed48dd84bd5c590247043:/src/src/mytypes.h diff --git a/src/src/mytypes.h b/src/src/mytypes.h index 8ccc679bb..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 - 2021 */ /* 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 @@ -42,8 +43,12 @@ so we have to give up on all of the available parameter checking. */ # 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 /**/