svn commit: r485568 - head/multimedia/cmrt
Jan Beich
jbeich at FreeBSD.org
Thu Nov 22 00:07:48 UTC 2018
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>
More information about the svn-ports-all
mailing list