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