diff libinterp/corefcn/gl2ps-renderer.cc @ 18680:ee7b23a48947

Clean up a few compiler warnings. * octave-dock-widget.cc (octave_dock_widget::make_widget): Correct spelling in comment. * gl2ps-renderer.cc (draw_pixels): Declare loop variable i as int to avoid signed/unsigned comparison warning. * graphics.cc (gtk_manager::do_unregister_toolkit): Change local variable name to tk_name to avoid shadowing function input.
author Rik <rik@octave.org>
date Fri, 25 Apr 2014 20:10:23 -0700
parents 78fac67300e8
children abd8d8c686c9
line wrap: on
line diff
--- a/libinterp/corefcn/gl2ps-renderer.cc	Fri Apr 25 15:49:03 2014 -0700
+++ b/libinterp/corefcn/gl2ps-renderer.cc	Fri Apr 25 20:10:23 2014 -0700
@@ -198,7 +198,7 @@
   OCTAVE_LOCAL_BUFFER (GLfloat, a, 3*w*h);
 
   // Convert to GL_FLOAT as it is the only type gl2ps accepts.
-  for (unsigned int i = 0; i < 3*w*h; i++)
+  for (int i = 0; i < 3*w*h; i++)
     a[i] = data[i] / maxval;
   
   gl2psDrawPixels (w, h, 0, 0, format, GL_FLOAT, a);