Author: pjd
Date: Mon Mar  7 09:28:21 2011
New Revision: 219368
URL: http://svn.freebsd.org/changeset/base/219368

Log:
  To be able to use printf extensions we need to turn off gcc format checking.
  Following the convention of NO_WERROR and NO_WCAST_ALIGN add NO_WFORMAT,
  which, when defined in Makefile, turns off compile-time format checking
  (by adding -Wno-format), but still allows to use high WARNS level.
  
  MFC after:    2 weeks

Modified:
  head/share/mk/bsd.sys.mk

Modified: head/share/mk/bsd.sys.mk
==============================================================================
--- head/share/mk/bsd.sys.mk    Mon Mar  7 09:04:06 2011        (r219367)
+++ head/share/mk/bsd.sys.mk    Mon Mar  7 09:28:21 2011        (r219368)
@@ -73,6 +73,9 @@ CWARNFLAGS    +=      -Werror
 .   endif
 .  endif
 . endif
+. if defined(NO_WFORMAT)
+CWARNFLAGS     +=      -Wno-format
+. endif
 .endif
 
 .if defined(IGNORE_PRAGMA)
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to