Fix a bunch of warnings

This commit is contained in:
Martin Nordholts 2010-08-31 22:29:49 +02:00
parent 7ea33a7ea6
commit 0dc4b5de72
3 changed files with 5 additions and 3 deletions

View File

@ -2531,7 +2531,7 @@ find_best_colors (QuantizeObj *quantobj,
int inR, inG, inB; /* initial values for increments */
/* This array holds the distance to the nearest-so-far color for each cell */
int bestdist[BOX_R_ELEMS * BOX_G_ELEMS * BOX_B_ELEMS];
int bestdist[BOX_R_ELEMS * BOX_G_ELEMS * BOX_B_ELEMS] = { 0, };
/* Initialize best-distance for each cell of the update box */
bptr = bestdist;

View File

@ -26,6 +26,8 @@
#include "config/gimpdisplayconfig.h"
#include "widgets/gimpwidgets-utils.h"
#include "gimpcanvas.h"
#include "gimp-intl.h"

View File

@ -102,12 +102,12 @@ main (void)
if (failures)
{
g_print ("%d out of %d samples failed!\n\n",
failures, G_N_ELEMENTS (samples));
failures, (int)G_N_ELEMENTS (samples));
return EXIT_FAILURE;
}
else
{
g_print ("All %d samples passed.\n\n", G_N_ELEMENTS (samples));
g_print ("All %d samples passed.\n\n", (int)G_N_ELEMENTS (samples));
return EXIT_SUCCESS;
}
}