On Sun, Sep 22, 2013 at 4:06 PM, Tom Browder <tom.brow...@gmail.com> wrote:
> 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.
> 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,

That does seem to "do the trick":  it caught the following:

In file:  src/other/tcl/generic/tclBasic.c
line: 239:     { "hypot", ExprBinaryFunc, (ClientData) hypot },
error: 'hypot' undeclared here (not in a function)

We find that the hypot function is a C99 function (see man hypot).

So what is the approved solution for that?  Macro guards?

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