svn commit: r301439 - head/contrib/libucl/src

Baptiste Daroussin bapt at FreeBSD.org
Sun Jun 5 09:38:49 UTC 2016


Author: bapt
Date: Sun Jun  5 09:38:48 2016
New Revision: 301439
URL: https://svnweb.freebsd.org/changeset/base/301439

Log:
  Ensure old gcc does not accidently get the attributes it does not know about

Modified:
  head/contrib/libucl/src/mum.h

Modified: head/contrib/libucl/src/mum.h
==============================================================================
--- head/contrib/libucl/src/mum.h	Sun Jun  5 08:51:56 2016	(r301438)
+++ head/contrib/libucl/src/mum.h	Sun Jun  5 09:38:48 2016	(r301439)
@@ -73,7 +73,7 @@ typedef unsigned __int64 uint64_t;
 #define _MUM_FRESH_GCC
 #endif
 
-#if defined(__GNUC__) && !defined(__llvm__)
+#if defined(__GNUC__) && !defined(__llvm__) && defined(_MUM_FRESH_GCC)
 #define _MUM_ATTRIBUTE_UNUSED  __attribute__((unused))
 #define _MUM_OPTIMIZE(opts) __attribute__((__optimize__ (opts)))
 #define _MUM_TARGET(opts) __attribute__((__target__ (opts)))


More information about the svn-src-all mailing list