* gnulib-local/lib/libxml/SAX2.c (xmlNsErrMsg): Mark as possibly unused.
(xmlSAX2AttributeDecl, xmlSAX2ElementDecl, xmlSAX2NotationDecl): Mark a local
variable as possibly unused.
* gnulib-local/lib/libxml/encoding.c (xmlCharEncCloseFunc): Likewise.
* gnulib-local/lib/libxml/trionan.c (compute_minus_zerod, minus_zerod): Mark as
possibly unused.
* gnulib-local/lib/libxml/tree.c (xmlDOMWrapCloneNode): Use a differently typed
variable cloneAttr.
/* libxml2 - Library for parsing XML documents
- * Copyright (C) 2006-2019 Free Software Foundation, Inc.
+ * Copyright (C) 2006-2023 Free Software Foundation, Inc.
*
* This file is not part of the GNU gettext program, but is used with
* GNU gettext.
*
* Handle a namespace error
*/
+_GL_ATTRIBUTE_MAYBE_UNUSED
static void LIBXML_ATTR_FORMAT(3,0)
xmlNsErrMsg(xmlParserCtxtPtr ctxt, xmlParserErrors error,
const char *msg, const xmlChar *str1, const xmlChar *str2)
xmlEnumerationPtr tree)
{
xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
- xmlAttributePtr attr;
+ _GL_ATTRIBUTE_MAYBE_UNUSED xmlAttributePtr attr;
xmlChar *name = NULL, *prefix = NULL;
if ((ctxt == NULL) || (ctxt->myDoc == NULL))
xmlElementContentPtr content)
{
xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
- xmlElementPtr elem = NULL;
+ _GL_ATTRIBUTE_MAYBE_UNUSED xmlElementPtr elem = NULL;
if ((ctxt == NULL) || (ctxt->myDoc == NULL))
return;
const xmlChar *publicId, const xmlChar *systemId)
{
xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
- xmlNotationPtr nota = NULL;
+ _GL_ATTRIBUTE_MAYBE_UNUSED xmlNotationPtr nota = NULL;
if ((ctxt == NULL) || (ctxt->myDoc == NULL))
return;
/* libxml2 - Library for parsing XML documents
- * Copyright (C) 2006-2019 Free Software Foundation, Inc.
+ * Copyright (C) 2006-2023 Free Software Foundation, Inc.
*
* This file is not part of the GNU gettext program, but is used with
* GNU gettext.
xmlCharEncCloseFunc(xmlCharEncodingHandler *handler) {
int ret = 0;
int tofree = 0;
- int i, handler_in_list = 0;
+ int i;
+ _GL_ATTRIBUTE_MAYBE_UNUSED int handler_in_list = 0;
if (handler == NULL) return(-1);
if (handler->name == NULL) return(-1);
/* libxml2 - Library for parsing XML documents
- * Copyright (C) 2006-2019 Free Software Foundation, Inc.
+ * Copyright (C) 2006-2023 Free Software Foundation, Inc.
*
* This file is not part of the GNU gettext program, but is used with
* GNU gettext.
/*
* Attributes (xmlAttr).
*/
- clone = (xmlNodePtr) xmlMalloc(sizeof(xmlAttr));
- if (clone == NULL) {
+ xmlAttrPtr cloneAttr = (xmlAttrPtr) xmlMalloc(sizeof(xmlAttr));
+ if (cloneAttr == NULL) {
xmlTreeErrMemory("xmlDOMWrapCloneNode(): allocating an attr-node");
goto internal_error;
}
- memset(clone, 0, sizeof(xmlAttr));
+ memset(cloneAttr, 0, sizeof(xmlAttr));
/*
* Set hierachical links.
* TODO: Change this to add to the end of attributes.
*/
if (resultClone != NULL) {
- clone->parent = parentClone;
+ cloneAttr->parent = parentClone;
if (prevClone) {
- prevClone->next = clone;
- clone->prev = prevClone;
+ prevClone->next = (xmlNodePtr) cloneAttr;
+ cloneAttr->prev = (xmlAttrPtr) prevClone;
} else
- parentClone->properties = (xmlAttrPtr) clone;
+ parentClone->properties = (xmlAttrPtr) cloneAttr;
} else
- resultClone = clone;
+ resultClone = (xmlNodePtr) cloneAttr;
break;
default:
/*
/* NaNs and Infinity in floating-point numbers.
- Copyright (C) 2015-2019 Free Software Foundation, Inc.
+ Copyright (C) 2015-2023 Free Software Foundation, Inc.
This file was written by Daiki Ueno <ueno@gnu.org>, 2015.
The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
to PowerPC on Mac OS X 10.5. */
#if defined __hpux || defined __sgi || defined __ICC
+_GL_ATTRIBUTE_MAYBE_UNUSED
static double
compute_minus_zerod (void)
{
}
# define minus_zerod compute_minus_zerod ()
#else
+_GL_ATTRIBUTE_MAYBE_UNUSED
static double minus_zerod = -0.0;
#endif