Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jul 2015 19:18:50 +0000 (UTC)
From:      Luigi Rizzo <luigi@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r285361 - head/sys/netpfil/ipfw
Message-ID:  <201507101918.t6AJIoVk047451@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: luigi
Date: Fri Jul 10 19:18:49 2015
New Revision: 285361
URL: https://svnweb.freebsd.org/changeset/base/285361

Log:
  one more warning suppression when compiling the test code in userspace.

Modified:
  head/sys/netpfil/ipfw/dn_heap.c

Modified: head/sys/netpfil/ipfw/dn_heap.c
==============================================================================
--- head/sys/netpfil/ipfw/dn_heap.c	Fri Jul 10 18:10:40 2015	(r285360)
+++ head/sys/netpfil/ipfw/dn_heap.c	Fri Jul 10 19:18:49 2015	(r285361)
@@ -52,7 +52,7 @@ __FBSDID("$FreeBSD$");
 #include  "dn_heap.h"
 #define log(x, arg...)	fprintf(stderr, ## arg)
 #define panic(x...)	fprintf(stderr, ## x), exit(1)
-#define MALLOC_DEFINE(a, b, c)
+#define MALLOC_DEFINE(a, b, c)	volatile int __dummy__ ## a __attribute__((__unused__))
 static void *my_malloc(int s) {	return malloc(s); }
 static void my_free(void *p) {	free(p); }
 #define malloc(s, t, w)	my_malloc(s)



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