Fixed and committed to the CD SVN. Not everything, but most of the report.
Best,
Scuri
2018-03-11 21:08 GMT-03:00 sur-behoffski <sur_behoff...@grouse.com.au>:
> On 03/12/18 09:27, sur-behoffski wrote:
>
>> G'day,
>> [...]
>>
>
> Following on from my previous message, here is the output from building
> CD (from the Subversion repository head, revision 744, not the tarball)
> on a Linux Mint system.
>
> The "format not a string literal" messages strewn across the "pptx.c"
> driver (Microsoft(R) Office Open Power Point XML format) are an
> immediate surprise: The first occurrence seems to be reasonable code:
>
> static void printOpenSlideRels(FILE* slideRelsFile)
> {
> const char *rels =
> {
> "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n"
> "(... second line, relationships stuff...)">\n"
> "(...third line, more relationships and schemas stuff...)\n"
> };
>
> fprintf(slideRelsFile, rels);
> }
>
> (The fprintf line is line 115... the compiler doesn't believe that
> "rels" is a string literal.)
>
> This warning can be suppressed simply by changing Line 108, from:
>
> const char *rels =
>
> to:
>
> const char * const rels =
>
> and that's it.
>
> (Incidentally, the "C" purist in me looks askance at the C++-style
> curly braces in the initialisation, as the preprocessor/compiler
> knows to concatenate consecutive string literals; however, we're
> looking to only make minimal-risk changes at first, so I'll bite
> my tongue (just).)
>
> Just adding "const" as we have above would eliminate about 20
> compiler warnings.
>
> For the record, Linux Mint 18.3 has gcc 5.4.x; Gentoo Linux has
> gcc 6.4.x and comes up with some differences in the diagnostics.
>
> You can see all the Linux Mint-platform diagnostics in the
> attached file.
>
> cheers,
>
> s-b etc.
> programmer, Grouse Software
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users