From: Olivier C. <oli...@pn...> - 2003-12-14 19:10:26
|
Hi, As i wanted to play with xmlstarlet, i get several compilation warning. (gcc 3.2.3, linux 2.4.19, libxml 2.6.2, xmlstarlet CVS or 0.7.0) So i send you a patch with following changelog : ( notice that i'm not at all a c expert, so... ) 1) Remove Warning with -Wall -pedantic compilation : - usage string chunk -> 509 char min on ISO C90 2) Remove Warning with -Wall -ansi -pedantic compilation : - add ansi flag, and remove -g -> configure.in - snprintf convert as sprintf -> ANSI compliant - strdup implementation -> ANSI compliant - stat macro modification (xml_ls.c) -> POSIX compliant - lstat convert as stat -> ansi compliant 3) Remove LibXml API Warning : - SAX handler modification (xml_pyx.c) -> API libxml 2.6.2 - docbook support removed -> deprecated since libxml 2.6.0 API 4) User Friendly : - configure.in modification -> check libxml2 version >= 2.6.2 5) Tidy : - remove unused fonction and headers from configure check - use #include "config.h" instead of <config.h> HTH :) -- Olivier Courtin |