[Klone-users] fatal source errors ignored?
Mark Richards
mark.richards at massmicro.com
Sat Aug 4 12:57:01 EDT 2007
thomas fossati wrote:
> Hi Mark,
>
> add '--enable_warns' to KLONE_CONF_ARGS variable in the top level
> Makefile. Then 'make clean' and 'make' again. That should give you the
> "too few arguments for format" warning you'd expect.
>
> ciao, t
>
Hi thomas,
Hope your weekend is sunny and fun.
I added --enable_warns so it looks like this:
KLONE_CONF_ARGS ?= --disable_cxx --enable_warns
Then I created a problem by doing this in index.kl1:
// missing parameter
snprintf(cSql,1024,"/runtime/exec/senddata.sh %i /var/tmp/comms.OK
comms.OK inbox/");
kloned still builds. There are a bunch of warnings but the build
process just keeps on rolling. I only see them if I scroll way back in
the make listing.
When this happens I noted that the warnings which follow the legitimate
issue (too few arguments for format) are really not valid warnings at
all. It's almost as if the compile process is thrown off somehow.
Would be ideal if there were an option for halt on warning or if the
make process, if there are warnings, tells you at the end (lists them out).
Here's the warning messages I get eventually:
/development/AEM/devboard-R2_10/apps/klone/webapp/www/index.kl1:334:
warning: too few arguments for format
/development/AEM/devboard-R2_10/apps/klone/webapp/www/index.kl1:334:
warning: too few arguments for format
If I fix the code, then this warning is cleared.
Since investigating this I find that there are a bunch of potentially
serious warnings way back in the make listing that I should have dealt
with. So again, would be great if somehow the process told you about
these at the end, or maybe just kept quiet until something breaks?
All the best,
/mark
More information about the klone-users
mailing list