[PATCH libXaw3d 5/5] Label: Fix nested extern declaration warnings

Yaakov (Cygwin/X) yselkowitz at users.sourceforge.net
Wed Aug 31 19:12:16 PDT 2011


From: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>

Signed-off-by: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
---
 src/Label.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/Label.c b/src/Label.c
index b3ecee9..d1a13c9 100644
--- a/src/Label.c
+++ b/src/Label.c
@@ -56,6 +56,7 @@ SOFTWARE.
 #include <X11/StringDefs.h>
 #include <X11/Xos.h>
 #include <X11/Xaw3d/XawInit.h>
+#include <X11/Xaw3d/Command.h>
 #include <X11/Xaw3d/LabelP.h>
 #include <X11/Xmu/Converters.h>
 #include <X11/Xmu/Drawing.h>
@@ -438,7 +439,6 @@ set_bitmap_info (LabelWidget lw)
 static void
 Initialize(Widget request, Widget new, ArgList args, Cardinal *num_args)
 {
-    extern WidgetClass commandWidgetClass;
     LabelWidget lw = (LabelWidget) new;
 
     /* disable shadows if we're not a subclass of Command */
@@ -484,7 +484,6 @@ Initialize(Widget request, Widget new, ArgList args, Cardinal *num_args)
 static void
 Redisplay(Widget gw, XEvent *event, Region region)
 {
-    extern WidgetClass commandWidgetClass;
     LabelWidget w = (LabelWidget) gw;
     LabelWidgetClass lwclass = (LabelWidgetClass) XtClass (gw);
     Pixmap pm;
-- 
1.7.5.1



More information about the xorg-devel mailing list