mirror of https://github.com/GNOME/gimp.git
Fix a bunch of warnings
This commit is contained in:
parent
7ea33a7ea6
commit
0dc4b5de72
|
@ -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;
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
|
||||
#include "config/gimpdisplayconfig.h"
|
||||
|
||||
#include "widgets/gimpwidgets-utils.h"
|
||||
|
||||
#include "gimpcanvas.h"
|
||||
|
||||
#include "gimp-intl.h"
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue