Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Nov 2018 00:07:47 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r485568 - head/multimedia/cmrt
Message-ID:  <201811220007.wAM07lOX069777@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Thu Nov 22 00:07:46 2018
New Revision: 485568
URL: https://svnweb.freebsd.org/changeset/ports/485568

Log:
  multimedia/cmrt: pacify -Wmacro-redefined
  
  In file included from cm_program.cpp:30:
  In file included from ./cm_device.h:37:
  In file included from ./cm_array.h:31:
  ./cm_mem.h:44:9: warning: '__fastcall' macro redefined [-Wmacro-redefined]
   #define __fastcall
           ^
  /usr/include/sys/cdefs.h:383:9: note: previous definition is here
   #define __fastcall      __attribute__((__fastcall__))
           ^
  In file included from cm_task.cpp:29:
  In file included from ./cm_task.h:29:
  In file included from ./cm_def.h:42:
  In file included from ./cm_common.h:32:
  In file included from ./oscl_impl_linux.h:34:
  ./oscl_platform_def.h:34:9: warning: 'UINT_MAX' macro redefined [-Wmacro-redefined]
   #define UINT_MAX            0xffffffff
           ^
  /usr/include/sys/limits.h:59:9: note: previous definition is here
   #define UINT_MAX        __UINT_MAX      /* max value for an unsigned int */
           ^

Modified:
  head/multimedia/cmrt/Makefile   (contents, props changed)

Modified: head/multimedia/cmrt/Makefile
==============================================================================
--- head/multimedia/cmrt/Makefile	Thu Nov 22 00:07:34 2018	(r485567)
+++ head/multimedia/cmrt/Makefile	Thu Nov 22 00:07:46 2018	(r485568)
@@ -26,5 +26,10 @@ INSTALL_TARGET=	install-strip
 post-patch:
 	@${REINPLACE_CMD} -e '/-g/d; /-O2/d' \
 		${WRKSRC}/src/Makefile.am
+# Silence -Wmacro-redefined
+	@${REINPLACE_CMD} -e '/__fastcall/d' \
+		${WRKSRC}/src/cm_mem.h
+	@${REINPLACE_CMD} -e '/#define UINT_MAX/d' \
+		${WRKSRC}/src/oscl_platform_def.h
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811220007.wAM07lOX069777>