C_WARNINGS ignored with CModule shared makefile?
Chris Mahoney (1684) 2165 posts |
I’m working on a module that uses the TCP/IP libraries, resulting in a lot of “non-ANSI include” warnings. The flag to disable these is I’ve added So, everything’s working fine with the CApp makefile, but it appears that the Does anyone know what’s going on here? I’m using DDE 27. |
Sprow (202) 1158 posts |
Note that |
Chris Mahoney (1684) 2165 posts |
I wonder why it works when using CApp, which also inherits StdTools (the examples included with the DDE also use C_WARNINGS). But nevertheless, CFLAGS does indeed do the trick. Thanks! |
Colin (478) 2433 posts |
I think it’s because CModule fixes the value of C_WARNINGS when CFLAGS (which includes C_WARNINGS) is used on the right hand side in CModule. C_WARNINGS doesn’t get used in CApp. You can override these values in CModule by overriding them before calling CModule like this:
You can set the values to anything you want. I use
if I want to include function names in my module – the default C_NO_FRAMES removes function names. |
Colin (478) 2433 posts |
No I think it’s simpler than that. Its because CModule fixes the value of CFLAGS so it no longer references C_WARNINGS. If you put C_WARNINGS after CModule it is changed but has no effect. |
Chris Mahoney (1684) 2165 posts |
Aha… I was only searching for “warnings” so I didn’t catch that. Good spotting! |