summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-05-28 05:25:02 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2019-05-29 04:32:47 -0400
commit7c4a5b577637f113372005fc360e03db9b058564 (patch)
treeae883fbcff43055331c4fd74edcef17b21522f86 /include
parent9ffc4ff7eb22b96472aa299b60dc3ed1550a7d6c (diff)
fix compiler-warning when DEBUG is defined
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'include')
-rw-r--r--include/X11/IntrinsicP.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/X11/IntrinsicP.h b/include/X11/IntrinsicP.h
index f2ded6f..9f1ae40 100644
--- a/include/X11/IntrinsicP.h
+++ b/include/X11/IntrinsicP.h
@@ -246,15 +246,15 @@ extern Boolean XtIsTopLevelShell(Widget);
#ifdef DEBUG
#define XtCheckSubclass(w, widget_class_ptr, message) \
if (!XtIsSubclass(((Widget)(w)), (widget_class_ptr))) { \
- String params[3]; \
- Cardinal num_params = 3; \
- params[0] = ((Widget)(w))->core.widget_class->core_class.class_name;\
- params[1] = (widget_class_ptr)->core_class.class_name; \
- params[2] = (message); \
+ String dbgArgV[3]; \
+ Cardinal dbgArgC = 3; \
+ dbgArgV[0] = ((Widget)(w))->core.widget_class->core_class.class_name;\
+ dbgArgV[1] = (widget_class_ptr)->core_class.class_name; \
+ dbgArgV[2] = (message); \
XtAppErrorMsg(XtWidgetToApplicationContext((Widget)(w)), \
"subclassMismatch", "xtCheckSubclass", "XtToolkitError", \
"Widget class %s found when subclass of %s expected: %s",\
- params, &num_params); \
+ dbgArgV, &dbgArgC); \
}
#else
#define XtCheckSubclass(w, widget_class, message) /* nothing */