Skip to content

Commit a1d47b1

Browse files
committed
Fix compiler warning for old libxml2
1 parent 59bdca6 commit a1d47b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/xml2_init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
#include <libxml/parser.h>
55
#include <string.h>
66

7-
static xmlExternalEntityLoader defaultLoader = NULL;
8-
97
/* * *
108
* Author: Nick Wellnhofer <wellnhofer@aevum.de>
119
* Date: Tue, 24 Oct 2023 15:02:36 +0200
@@ -56,6 +54,8 @@ void handleGenericError(void *ctx, const char *fmt, ...){
5654

5755
#if LIBXML_VERSION >= 21500
5856

57+
static xmlExternalEntityLoader defaultLoader = NULL;
58+
5959
xmlParserInput *download_file_callback(const char *url){
6060
SEXP arg = PROTECT(Rf_mkString(url));
6161
SEXP expr = PROTECT(Rf_install("download_file_callback"));

0 commit comments

Comments
 (0)