Skip to content

Commit 774dee9

Browse files
keeperLinuxJedi
authored andcommitted
Fix compiler warnings
-Wdeprecated-declarations: Replace deprecated xmlXPathInit() with xmlInitParser()[1] -Wmaybe-uninitialized: `fil1` was initialized to 0 in commit 0138220 to fix compiler warnings, but `fil2` was missed. ref: [1]: https://gnome.pages.gitlab.gnome.org/libxml2/devhelp/libxml2-xpath.html#xmlXPathInit
1 parent 3eab227 commit 774dee9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

storage/connect/libdoc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ xmlNodeSetPtr LIBXMLDOC::GetNodeList(PGLOBAL g, xmlNodePtr np, char *xp)
600600
if (trace(1))
601601
htrc("Calling xmlPathInit\n");
602602

603-
xmlXPathInit();
603+
xmlInitParser();
604604

605605
if (trace(1))
606606
htrc("Calling xmlXPathNewContext Docp=%p\n", Docp);

storage/connect/tabext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ bool TDBEXT::MakeSrcdef(PGLOBAL g)
330330
char *catp = strstr(Srcdef, "%s");
331331

332332
if (catp) {
333-
char *fil1 = 0, *fil2;
333+
char *fil1 = 0, *fil2 = 0;
334334
PCSZ ph = ((EXTDEF*)To_Def)->Phpos;
335335

336336
if (!ph)

0 commit comments

Comments
 (0)