On Sep 22, 2013, at 5:06 PM, Tom Browder wrote:
> 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?
The conformance flags should be build-system agnostic. We currently vary them
to help ensure variety is tested and reported. The warnings and errors will be
different for Release/Optimized builds in particular because some macros change
completely during optimization.
Basically, you'll want to also add them to the Release build type, or set them
as a global flag. The latter is as simple as just removing the "BUILD_TYPES
Debug" portion.
Note, the pedantic flag is already added by default, unless warnings are
disabled. See misc/CMake/BRLCAD_CompilerFlags.cmake:100 for reference.
Cheers!
Sean
------------------------------------------------------------------------------
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/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel