GNOME Bugzilla – Bug 567575
Compiler warning in xsltInternals.h
Last modified: 2009-01-13 11:54:35 UTC
Please describe the problem: typedef enum { XSLT_FUNC_COPY=1, XSLT_FUNC_SORT, XSLT_FUNC_TEXT, XSLT_FUNC_ELEMENT, XSLT_FUNC_ATTRIBUTE, XSLT_FUNC_COMMENT, XSLT_FUNC_PI, XSLT_FUNC_COPYOF, XSLT_FUNC_VALUEOF, XSLT_FUNC_NUMBER, XSLT_FUNC_APPLYIMPORTS, XSLT_FUNC_CALLTEMPLATE, XSLT_FUNC_APPLYTEMPLATES, XSLT_FUNC_CHOOSE, XSLT_FUNC_IF, XSLT_FUNC_FOREACH, XSLT_FUNC_DOCUMENT, XSLT_FUNC_WITHPARAM, XSLT_FUNC_PARAM, XSLT_FUNC_VARIABLE, XSLT_FUNC_WHEN, XSLT_FUNC_EXTENSION, #ifdef XSLT_REFACTORED XSLT_FUNC_OTHERWISE, XSLT_FUNC_FALLBACK, XSLT_FUNC_MESSAGE, XSLT_FUNC_INCLUDE, XSLT_FUNC_ATTRSET, XSLT_FUNC_LITERAL_RESULT_ELEMENT, XSLT_FUNC_UNKOWN_FORWARDS_COMPAT, #endif } xsltStyleType; is an incorrect enum specification. It should not have a trailing ',' after the last enum. This generates a compiler warning msg. Steps to reproduce: 1. Compile a .C which includes xsltInternals.h 2. 3. Actual results: A compiler warning is generated. Expected results: eh .... no warnings or errors. Does this happen every time? Y Other information:
You, and/or your compiler, are certainly correct that the last comma doesn't belong in that enumeration declaration. But..... I would respectfully point out that, on August 4, 2006, a correction was made to the SVN code for that line, and the corrected line has appeared in all releases since that date. Might you possibly consider upgrading your libxml2/libxslt software to a somewhat more current version?
I would absolutely consider this. :-^) Thanks for your time.