From 48ff7557d1adb1e97f345280448f453c7332308b Mon Sep 17 00:00:00 2001 From: Gaurav Date: Wed, 3 May 2017 10:46:38 +0530 Subject: [PATCH 1/3] Remove some unused variables GCC compiler warns about unused variables. Fix it. --- main.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/main.cpp b/main.cpp index c259c8a..477f917 100644 --- a/main.cpp +++ b/main.cpp @@ -149,8 +149,6 @@ int main () fprintf (Fp_out_html, "

Results

\n"); - TiXmlElement * XEp_sub = XEp_main -> FirstChildElement ("b"); - v_test_one_string (XEp_main, "/a/*[name()!='b']", "x"); v_test_one_string (XEp_main, "//b/@val", "123" ); From 224606cc6f7df0594303ea26d0440c3312b8193d Mon Sep 17 00:00:00 2001 From: Gaurav Date: Wed, 3 May 2017 10:50:10 +0530 Subject: [PATCH 2/3] Remove GCC compiler warnings. --- xpath_processor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xpath_processor.cpp b/xpath_processor.cpp index d8d3f81..12c27ff 100644 --- a/xpath_processor.cpp +++ b/xpath_processor.cpp @@ -1001,7 +1001,7 @@ void xpath_processor::v_execute_absolute_path ( if (o_with_rel) { int i_1, i_2, i_3; - int i_bak_position, i_current, i_first, i_relative; + int i_current, i_first, i_relative; TIXML_STRING S_lit; // compute position of the first (absolute) step @@ -1022,7 +1022,6 @@ void xpath_processor::v_execute_absolute_path ( i_first = i_relative; } // i_first = i_3 - 1; - i_bak_position = as_action_store . i_get_position (); as_action_store . v_set_position (i_first); if (o_everywhere) i_relative_action = -1; From e2f837ca57c79e91e64789c46248bdc85960bb4c Mon Sep 17 00:00:00 2001 From: Gaurav Date: Wed, 3 May 2017 10:52:19 +0530 Subject: [PATCH 3/3] Remove GCC Compiler warnings. --- node_set.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/node_set.cpp b/node_set.cpp index c1c554c..098f3ef 100644 --- a/node_set.cpp +++ b/node_set.cpp @@ -337,11 +337,10 @@ static int i_compare_ptr_2_and_flag ( const void * vp_1, ///< Ptr to first element to compare const void * vp_2) ///< Ptr to second element to compare { - const ptr_2_and_flag * p2afp_1, * p2afp_2; + const ptr_2_and_flag * p2afp_1; int i_res; p2afp_1 = (const ptr_2_and_flag *) vp_1; - p2afp_2 = (const ptr_2_and_flag *) vp_2; i_res = i_compare_node_in_tree (p2afp_1 -> XNp_root, (const TiXmlBase *) p2afp_1 -> vp_node, (const TiXmlBase *) p2afp_1 -> vp_node); switch (i_res) {