Skip to content
Browse files

Silenced warnings

  • Loading branch information...
1 parent 8100d3d commit 2db2c615949543a7b0870180fdc08af202d59051 @pornel committed
Showing with 5 additions and 5 deletions.
  1. +1 −1 mempool.h
  2. +1 −1 nearest.h
  3. +3 −3 pngquant.c
View
2 mempool.h
@@ -5,4 +5,4 @@ struct mempool;
typedef struct mempool *mempool;
void* mempool_new(mempool *mptr, size_t size);
-void mempool_free(mempool m);
+void mempool_free(mempool m);
View
2 nearest.h
@@ -5,4 +5,4 @@
struct nearest_map;
struct nearest_map *nearest_init(const colormap *palette);
int nearest_search(struct nearest_map *map, f_pixel px, float min_opaque, float *diff);
-void nearest_free(struct nearest_map *map);
+void nearest_free(struct nearest_map *map);
View
6 pngquant.c
@@ -213,8 +213,8 @@ int main(int argc, char *argv[])
verbose_printf("%s:\n", filename);
- read_info input_image = {{0}}; // initializes all fields to 0
- write_info output_image = {{0}};
+ read_info input_image = {}; // initializes all fields to 0
+ write_info output_image = {};
retval = read_image(filename,using_stdin,&input_image);
if (!retval) {
@@ -846,7 +846,7 @@ static colormap *find_best_palette(hist *hist, int reqcolors, float min_opaque_v
{
hist_item *achv = hist->achv;
colormap *acolormap = NULL;
- double least_error;
+ double least_error = 0;
const double percent = (double)(feedback_loop_trials>0?feedback_loop_trials:1)/100.0;
do

0 comments on commit 2db2c61

Please sign in to comment.
Something went wrong with that request. Please try again.