[libxslt] Suppress unused variable warning.
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxslt] Suppress unused variable warning.
- Date: Tue, 25 Feb 2014 14:27:35 +0000 (UTC)
commit 4a732360d14a1a24f688b808c30e86156f52486b
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Tue Feb 25 15:13:45 2014 +0100
Suppress unused variable warning.
libxslt/preproc.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libxslt/preproc.c b/libxslt/preproc.c
index 4ef3f63..0eb80a0 100644
--- a/libxslt/preproc.c
+++ b/libxslt/preproc.c
@@ -949,6 +949,8 @@ xsltElementComp(xsltStylesheetPtr style, xmlNodePtr inst) {
#ifdef XSLT_REFACTORED
comp->nsPrefix = prefix;
comp->name = name;
+#else
+ (void)name; /* Suppress unused variable warning. */
#endif
} else if (prefix != NULL) {
xsltTransformError(NULL, style, inst,
@@ -1074,6 +1076,8 @@ xsltAttributeComp(xsltStylesheetPtr style, xmlNodePtr inst) {
#ifdef XSLT_REFACTORED
comp->nsPrefix = prefix;
comp->name = name;
+#else
+ (void)name; /* Suppress unused variable warning. */
#endif
} else {
xsltTransformError(NULL, style, inst,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]