[5.2] 7f0226c GCC doesn't like attributes on typedefs

PÃ¥l Hermunn Johansen hermunn at varnish-software.com
Fri Sep 15 11:17:31 UTC 2017


commit 7f0226cb842e6b2feab6d56b96e1de5fec3c8a7b
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Sep 14 17:46:39 2017 +0000

    GCC doesn't like attributes on typedefs

diff --git a/include/vas.h b/include/vas.h
index ec4adc5..76bcb75 100644
--- a/include/vas.h
+++ b/include/vas.h
@@ -46,8 +46,7 @@ enum vas_e {
 	VAS_VCL,
 };
 
-typedef void vas_f(const char *, const char *, int, const char *, enum vas_e)
-    __attribute__((__noreturn__));
+typedef void vas_f(const char *, const char *, int, const char *, enum vas_e);
 
 extern vas_f *VAS_Fail_Func __attribute__((__noreturn__));
 extern vas_f VAS_Fail __attribute__((__noreturn__));


More information about the varnish-commit mailing list