mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-02-02 21:47:01 +03:00
make sure ATTRIBUTE_UNUSED is always put after the attribute declaration,
* xinclude.c xmlschemas.c xmlschemastypes.c xpath.c: make sure ATTRIBUTE_UNUSED is always put after the attribute declaration, not before Daniel
This commit is contained in:
parent
d4cb1e8a5f
commit
dda8f1ba9f
@ -1,3 +1,9 @@
|
||||
Thu Sep 26 11:45:42 CEST 2002 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* xinclude.c xmlschemas.c xmlschemastypes.c xpath.c: make sure
|
||||
ATTRIBUTE_UNUSED is always put after the attribute declaration,
|
||||
not before
|
||||
|
||||
Thu Sep 26 11:33:28 CEST 2002 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* python/generator.py python/libxml2class.txt: fixed a stupid error
|
||||
|
@ -370,7 +370,7 @@ xmlXIncludeAddNode(xmlXIncludeCtxtPtr ctxt, xmlNodePtr cur) {
|
||||
*/
|
||||
static void
|
||||
xmlXIncludeRecurseDoc(xmlXIncludeCtxtPtr ctxt, xmlDocPtr doc,
|
||||
ATTRIBUTE_UNUSED const xmlURL url) {
|
||||
const xmlURL url ATTRIBUTE_UNUSED) {
|
||||
xmlXIncludeCtxtPtr newctxt;
|
||||
int i;
|
||||
|
||||
|
16
xmlschemas.c
16
xmlschemas.c
@ -491,9 +491,9 @@ xmlSchemaErrorContext(xmlSchemaParserCtxtPtr ctxt, xmlSchemaPtr schema,
|
||||
*/
|
||||
static void
|
||||
xmlSchemaElementDump(xmlSchemaElementPtr elem, FILE * output,
|
||||
ATTRIBUTE_UNUSED const xmlChar *name,
|
||||
ATTRIBUTE_UNUSED const xmlChar *context,
|
||||
ATTRIBUTE_UNUSED const xmlChar *namespace)
|
||||
const xmlChar *name ATTRIBUTE_UNUSED,
|
||||
const xmlChar *context ATTRIBUTE_UNUSED,
|
||||
const xmlChar *namespace ATTRIBUTE_UNUSED)
|
||||
{
|
||||
if (elem == NULL)
|
||||
return;
|
||||
@ -3292,8 +3292,8 @@ static void
|
||||
xmlSchemaRefFixupCallback(xmlSchemaElementPtr elem,
|
||||
xmlSchemaParserCtxtPtr ctxt,
|
||||
const xmlChar *name,
|
||||
ATTRIBUTE_UNUSED const xmlChar *context,
|
||||
ATTRIBUTE_UNUSED const xmlChar *namespace)
|
||||
const xmlChar *context ATTRIBUTE_UNUSED,
|
||||
const xmlChar *namespace ATTRIBUTE_UNUSED)
|
||||
{
|
||||
if ((ctxt == NULL) || (elem == NULL))
|
||||
return;
|
||||
@ -4170,7 +4170,7 @@ xmlSchemaCheckAttributes(xmlSchemaValidCtxtPtr ctxt, xmlNodePtr node) {
|
||||
*/
|
||||
static int
|
||||
xmlSchemaValidateSimpleContent(xmlSchemaValidCtxtPtr ctxt,
|
||||
ATTRIBUTE_UNUSED xmlNodePtr node) {
|
||||
xmlNodePtr node ATTRIBUTE_UNUSED) {
|
||||
xmlNodePtr child;
|
||||
xmlSchemaTypePtr type, base;
|
||||
xmlChar *value;
|
||||
@ -4253,7 +4253,7 @@ xmlSchemaValidateCheckNodeList(xmlNodePtr nodelist) {
|
||||
* number otherwise and -1 in case of internal or API error.
|
||||
*/
|
||||
static xmlNodePtr
|
||||
xmlSchemaSkipIgnored(ATTRIBUTE_UNUSED xmlSchemaValidCtxtPtr ctxt,
|
||||
xmlSchemaSkipIgnored(xmlSchemaValidCtxtPtr ctxt ATTRIBUTE_UNUSED,
|
||||
xmlSchemaTypePtr type,
|
||||
xmlNodePtr node) {
|
||||
int mixed = 0;
|
||||
@ -4284,7 +4284,7 @@ xmlSchemaSkipIgnored(ATTRIBUTE_UNUSED xmlSchemaValidCtxtPtr ctxt,
|
||||
*/
|
||||
static void
|
||||
xmlSchemaValidateCallback(xmlSchemaValidCtxtPtr ctxt,
|
||||
ATTRIBUTE_UNUSED const xmlChar *name,
|
||||
const xmlChar *name ATTRIBUTE_UNUSED,
|
||||
xmlSchemaTypePtr type,
|
||||
xmlNodePtr node) {
|
||||
xmlSchemaTypePtr oldtype = ctxt->type;
|
||||
|
@ -668,7 +668,7 @@ _xmlSchemaParseTimeZone (xmlSchemaValDatePtr dt, const xmlChar **str) {
|
||||
* and -1 in case of internal or API error.
|
||||
*/
|
||||
static int
|
||||
xmlSchemaValidateDates (ATTRIBUTE_UNUSED xmlSchemaTypePtr type,
|
||||
xmlSchemaValidateDates (xmlSchemaTypePtr type ATTRIBUTE_UNUSED,
|
||||
const xmlChar *dateTime, xmlSchemaValPtr *val) {
|
||||
xmlSchemaValPtr dt;
|
||||
int ret;
|
||||
@ -827,7 +827,7 @@ error:
|
||||
* and -1 in case of internal or API error.
|
||||
*/
|
||||
static int
|
||||
xmlSchemaValidateDuration (ATTRIBUTE_UNUSED xmlSchemaTypePtr type,
|
||||
xmlSchemaValidateDuration (xmlSchemaTypePtr type ATTRIBUTE_UNUSED,
|
||||
const xmlChar *duration, xmlSchemaValPtr *val) {
|
||||
const xmlChar *cur = duration;
|
||||
xmlSchemaValPtr dur;
|
||||
@ -1792,7 +1792,7 @@ xmlSchemaCompareValues(xmlSchemaValPtr x, xmlSchemaValPtr y) {
|
||||
* number otherwise and -1 in case of internal or API error.
|
||||
*/
|
||||
int
|
||||
xmlSchemaValidateFacet(ATTRIBUTE_UNUSED xmlSchemaTypePtr base,
|
||||
xmlSchemaValidateFacet(xmlSchemaTypePtr base ATTRIBUTE_UNUSED,
|
||||
xmlSchemaFacetPtr facet,
|
||||
const xmlChar *value, xmlSchemaValPtr val)
|
||||
{
|
||||
|
4
xpath.c
4
xpath.c
@ -1284,8 +1284,8 @@ static const char *xmlXPathErrorMessages[] = {
|
||||
* Formats an error message.
|
||||
*/
|
||||
void
|
||||
xmlXPatherror(xmlXPathParserContextPtr ctxt, ATTRIBUTE_UNUSED const char *file,
|
||||
ATTRIBUTE_UNUSED int line, int no) {
|
||||
xmlXPatherror(xmlXPathParserContextPtr ctxt, const char *file ATTRIBUTE_UNUSED,
|
||||
int line ATTRIBUTE_UNUSED, int no) {
|
||||
int n;
|
||||
const xmlChar *cur;
|
||||
const xmlChar *base;
|
||||
|
Loading…
x
Reference in New Issue
Block a user