mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
Tentatively fixed #69655 , make compiling with -Wredundant-decls clean.
* HTMLtree.c Makefile.am build_glob.py configure.in debugXML.c globals.c parser.c threads.c tree.c valid.c xmlmemory.c xpath.c xpointer.c include/libxml/globals.h include/libxml/parser.h include/libxml/parserInternals.h include/libxml/tree.h include/libxml/xmlmemory.h include/libxml/xpathInternals.h: Tentatively fixed #69655 , make compiling with -Wredundant-decls clean. * python/libxml.c: fixed a warning. Daniel
This commit is contained in:
10
threads.c
10
threads.c
@ -146,7 +146,7 @@ xmlFreeMutex(xmlMutexPtr tok)
|
||||
* xmlMutexLock() is used to lock a libxml2 token.
|
||||
*/
|
||||
void
|
||||
xmlMutexLock(xmlMutexPtr tok)
|
||||
xmlMutexLock(xmlMutexPtr tok ATTRIBUTE_UNUSED)
|
||||
{
|
||||
#ifdef HAVE_PTHREAD_H
|
||||
pthread_mutex_lock(&tok->lock);
|
||||
@ -163,7 +163,7 @@ xmlMutexLock(xmlMutexPtr tok)
|
||||
* xmlMutexUnlock() is used to unlock a libxml2 token.
|
||||
*/
|
||||
void
|
||||
xmlMutexUnlock(xmlMutexPtr tok)
|
||||
xmlMutexUnlock(xmlMutexPtr tok ATTRIBUTE_UNUSED)
|
||||
{
|
||||
#ifdef HAVE_PTHREAD_H
|
||||
pthread_mutex_unlock(&tok->lock);
|
||||
@ -208,7 +208,7 @@ xmlNewRMutex(void)
|
||||
* reentrant mutex.
|
||||
*/
|
||||
void
|
||||
xmlFreeRMutex(xmlRMutexPtr tok)
|
||||
xmlFreeRMutex(xmlRMutexPtr tok ATTRIBUTE_UNUSED)
|
||||
{
|
||||
#ifdef HAVE_PTHREAD_H
|
||||
pthread_mutex_destroy(&tok->lock);
|
||||
@ -225,7 +225,7 @@ xmlFreeRMutex(xmlRMutexPtr tok)
|
||||
* xmlRMutexLock() is used to lock a libxml2 token_r.
|
||||
*/
|
||||
void
|
||||
xmlRMutexLock(xmlRMutexPtr tok)
|
||||
xmlRMutexLock(xmlRMutexPtr tok ATTRIBUTE_UNUSED)
|
||||
{
|
||||
#ifdef HAVE_PTHREAD_H
|
||||
pthread_mutex_lock(&tok->lock);
|
||||
@ -257,7 +257,7 @@ xmlRMutexLock(xmlRMutexPtr tok)
|
||||
* xmlRMutexUnlock() is used to unlock a libxml2 token_r.
|
||||
*/
|
||||
void
|
||||
xmlRMutexUnlock(xmlRMutexPtr tok)
|
||||
xmlRMutexUnlock(xmlRMutexPtr tok ATTRIBUTE_UNUSED)
|
||||
{
|
||||
#ifdef HAVE_PTHREAD_H
|
||||
pthread_mutex_lock(&tok->lock);
|
||||
|
Reference in New Issue
Block a user