fixed many warnings from GCC 4.6.1
[profile/ivi/opencv.git] / modules / highgui / src / window_gtk.cpp
index 9d873a8..e68a8cb 100644 (file)
@@ -156,7 +156,6 @@ cvImageWidgetNew (int flags)
 static void
 cvImageWidget_realize (GtkWidget *widget)
 {
-  CvImageWidget *image_widget;
   GdkWindowAttr attributes;
   gint attributes_mask;
 
@@ -165,7 +164,6 @@ cvImageWidget_realize (GtkWidget *widget)
   g_return_if_fail (CV_IS_IMAGE_WIDGET (widget));
 
   GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED);
-  image_widget = CV_IMAGE_WIDGET (widget);
 
   attributes.x = widget->allocation.x;
   attributes.y = widget->allocation.y;