[PATCH libXaw3d 1/2] Fix a couple unused function warnings
Matt Turner
mattst88 at gmail.com
Sat Sep 17 11:22:21 PDT 2011
Functions were only called inside ifdef blocks, but were defined
outside.
Signed-off-by: Matt Turner <mattst88 at gmail.com>
---
src/TextAction.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/TextAction.c b/src/TextAction.c
index 7d1afcb..8d8fe00 100644
--- a/src/TextAction.c
+++ b/src/TextAction.c
@@ -93,6 +93,7 @@ extern int _XawTextReplace(TextWidget, XawTextPosition, XawTextPosition, XawText
static void GetSelection(Widget, Time, String *, Cardinal);
void _XawTextZapSelection(TextWidget, XEvent *, Boolean);
+#ifdef XAW_INTERNATIONALIZATION
static void
ParameterError(Widget w, String param)
{
@@ -107,6 +108,7 @@ ParameterError(Widget w, String param)
params, &num_params);
XBell( XtDisplay( w ), 50 );
}
+#endif
static void
StartAction(TextWidget ctx, XEvent *event)
@@ -178,6 +180,7 @@ struct _SelectionList {
Atom selection; /* selection atom when asking XA_COMPOUND_TEXT */
};
+#ifdef XAW_INTERNATIONALIZATION
static int
ProbablyMB(char *s)
{
@@ -197,6 +200,7 @@ ProbablyMB(char *s)
}
return( has_hi_bit );
}
+#endif
/* ARGSUSED */
static void
--
1.7.3.4
More information about the xorg-devel
mailing list