[gl2ps] building gl2ps without warnings

Christophe Geuzaine cgeuzaine at ulg.ac.be
Sat Feb 12 14:44:11 CET 2011


Hi Larry - Thanks for the patch: fixed in r544.

Christophe

On 09/02/11 23:16, Larry Doolittle wrote:
> Christophe -
>
> I just built the fresh release 3.4.0 of octave, which includes
> a copy of gl2ps.[ch].  Many of the warnings in that compile come
> from gl2ps.  I checked, they have an up-to-date copy of what's in
> your svn repository (with trailing spaces deleted).
>
> The reason so many warnings are generated is that they have gcc's
> lint-checking features turned up high.  Something like -Wall -W
> -Wshadow -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings
> -Wcast-align -Wcast-qual -g -O2.
>
> I investigated all the warnings, and they are all innocuous, with
> simple fixes.  I attach a patch which makes gl2ps compile without
> warnings under those conditions.  Maybe you could apply it, and
> also take out those silly trailing spaces ("1,$s/  *//" in vi).
>
>      - Larry
>
>
>
> _______________________________________________
> gl2ps mailing list
> gl2ps at geuz.org
> http://www.geuz.org/mailman/listinfo/gl2ps


-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine