svn commit: r255487 - head/tools/tools/net80211/wlanstats

Hiren Panchasara hiren at FreeBSD.org
Thu Sep 12 02:31:32 UTC 2013


Author: hiren
Date: Thu Sep 12 02:31:32 2013
New Revision: 255487
URL: http://svnweb.freebsd.org/changeset/base/255487

Log:
  We are exceeding default limit (256) of bracket nesting and clang does not like
  it. We should probably fix the code but appeasing clang with this fix for now.
  gcc does not have such limit.
  
  Reviewed by:	jmg
  Approved by:	re (hrs), sbruno (mentor, implicit)

Modified:
  head/tools/tools/net80211/wlanstats/Makefile

Modified: head/tools/tools/net80211/wlanstats/Makefile
==============================================================================
--- head/tools/tools/net80211/wlanstats/Makefile	Thu Sep 12 00:53:38 2013	(r255486)
+++ head/tools/tools/net80211/wlanstats/Makefile	Thu Sep 12 02:31:32 2013	(r255487)
@@ -1,9 +1,14 @@
 # $FreeBSD$
 
+.include <bsd.compiler.mk>
+
 PROG=	wlanstats
 BINDIR=	/usr/local/bin
 NO_MAN=
 
 SRCS=	statfoo.c wlanstats.c main.c
+.if ${COMPILER_TYPE} == "clang"
+CFLAGS+= -fbracket-depth=512
+.endif
 
 .include <bsd.prog.mk>


More information about the svn-src-all mailing list