Fix $regex<n> use-after-free. Bug 2915
[exim.git] / src / src / mytypes.h
index 38ee93d8ca034276ea6eaa9f65562e737f11181b..49fed0a9d53484998b1824fa37a64d1448ba880f 100644 (file)
@@ -2,8 +2,8 @@
 *     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. */
 
 
@@ -39,12 +39,14 @@ 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))
 #else
 # define ARG_UNUSED            /**/
+# define FUNC_MAYBE_UNUSED     /**/
 # define WARN_UNUSED_RESULT    /**/
 # define ALLOC                 /**/
 # define ALLOC_SIZE(A)         /**/