Commits

Mike Frysinger committed ac33a3a

fix implicit memset decl

Need to include string.h to get the memset prototype:

gd_color_match.c: In function 'gdImageColorMatch':
gd_color_match.c:32:2: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
memset (buf, 0, sizeof(unsigned long) * 5 * im2->colorsTotal );
^

Comments (0)

Files changed (1)

src/gd_color_match.c

 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
+#include <string.h>
 #include "gd.h"
 #include "gdhelpers.h"