On Thu, Sep 12, 2013 at 11:37 AM, Christopher Sean Morrison
<brl...@mac.com> wrote:
> Still, the measure for migrating to C99 has been demonstrating
> (and making the accommodations for) a strict C89 posix compilation baseline.
> Basically, it's a matter of setting the compilation flags to strict C89 mode
> and fixing the warnings/errors that ensue.  Right now, we predominantly
> use --std=gnu89 and --std=gnu99 to catch the most variety.  [1]

Okay, I added this to misc/CMake/CompilerFlags.cmake:

  BRLCAD_CHECK_C_FLAG("std=c89" BUILD_TYPES Debug)
  BRLCAD_CHECK_C_FLAG("pedantic" BUILD_TYPES Debug)

Should that do the trick with a Debug build?  If so, maybe Cliff could
add a config option to select that, say,

  -DBRLCAD_C89_TEST

Best,

-Tom

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to