[argyllcms] Building Argyll with GCC 5.3.1

  • From: Pascal de Bruijn <pmjdebruijn@xxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Fri, 22 Apr 2016 20:50:00 +0200

Hey,

Current (1.8.3) and Dev (1.8.5_beta) Argyll do not compile with GCC 5.3.1
(Tested on Ubuntu 16.04).

It seems however Debian/Ubuntu already shipping a patch to make it build
(see attachment).

Author: James Cowgill <james410@xxxxxxxxxxxxxx>
Source:
http://archive.ubuntu.com/ubuntu/pool/universe/a/argyll/argyll_1.8.3+repack-2.debian.tar.xz

Regards,
Pascal de Bruijn
Description: Fix FTBFS with GCC 5
Author: James Cowgill <james410@xxxxxxxxxxxxxx>
Bug-Debian: https://bugs.debian.org/777779
Forwarded: no
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/icc/icc.h
+++ b/icc/icc.h
@@ -100,7 +100,11 @@
 #define CF64PREC "LL"          /* Constant precision specifier */
 
 #ifndef ATTRIBUTE_NORETURN
+#ifdef _MSC_VER
 # define ATTRIBUTE_NORETURN __declspec(noreturn)
+#else
+# define ATTRIBUTE_NORETURN __attribute__((noreturn))
+#endif
 #endif
 
 #else  /* !__STDC_VERSION__ */

Other related posts: