mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-28 23:14:57 +03:00
Fix unused function warning in testapi.c
This commit is contained in:
@@ -382,6 +382,7 @@ static void des_FILE_ptr(int no ATTRIBUTE_UNUSED, FILE *val, int nr ATTRIBUTE_UN
|
|||||||
if (val != NULL) fclose(val);
|
if (val != NULL) fclose(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef LIBXML_DEBUG_ENABLED
|
||||||
#define gen_nb_debug_FILE_ptr 2
|
#define gen_nb_debug_FILE_ptr 2
|
||||||
static FILE *gen_debug_FILE_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) {
|
static FILE *gen_debug_FILE_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) {
|
||||||
return(fopen("test.out", "a+"));
|
return(fopen("test.out", "a+"));
|
||||||
@@ -389,6 +390,7 @@ static FILE *gen_debug_FILE_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED
|
|||||||
static void des_debug_FILE_ptr(int no ATTRIBUTE_UNUSED, FILE *val, int nr ATTRIBUTE_UNUSED) {
|
static void des_debug_FILE_ptr(int no ATTRIBUTE_UNUSED, FILE *val, int nr ATTRIBUTE_UNUSED) {
|
||||||
if (val != NULL) fclose(val);
|
if (val != NULL) fclose(val);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#define gen_nb_const_xmlChar_ptr 5
|
#define gen_nb_const_xmlChar_ptr 5
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user