Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Sep 2013 02:31:32 +0000 (UTC)
From:      Hiren Panchasara <hiren@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r255487 - head/tools/tools/net80211/wlanstats
Message-ID:  <201309120231.r8C2VW8s041900@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



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