shared: Use $(GCC_CFLAGS), fix warnings

This commit is contained in:
Kristian Høgsberg
2012-04-11 09:43:53 -04:00
parent 6412718c0d
commit ee4b4cb933
2 changed files with 6 additions and 2 deletions
+1
View File
@@ -1,5 +1,6 @@
libconfig_parser_la_LIBADD = $(IMAGE_LIBS) libconfig_parser_la_LIBADD = $(IMAGE_LIBS)
AM_CPPFLAGS = $(IMAGE_CFLAGS) AM_CPPFLAGS = $(IMAGE_CFLAGS)
AM_CFLAGS = $(GCC_CFLAGS)
noinst_LTLIBRARIES = libconfig-parser.la noinst_LTLIBRARIES = libconfig-parser.la
libconfig_parser_la_SOURCES = \ libconfig_parser_la_SOURCES = \
+5 -2
View File
@@ -29,6 +29,8 @@
#include <png.h> #include <png.h>
#include <pixman.h> #include <pixman.h>
#include "config-parser.h"
#define ARRAY_LENGTH(a) (sizeof (a) / sizeof (a)[0]) #define ARRAY_LENGTH(a) (sizeof (a) / sizeof (a)[0])
#ifdef HAVE_WEBP #ifdef HAVE_WEBP
@@ -67,7 +69,8 @@ load_jpeg(FILE *fp)
{ {
struct jpeg_decompress_struct cinfo; struct jpeg_decompress_struct cinfo;
struct jpeg_error_mgr jerr; struct jpeg_error_mgr jerr;
int stride, i, first; unsigned int i;
int stride, first;
JSAMPLE *data, *rows[4]; JSAMPLE *data, *rows[4];
jmp_buf env; jmp_buf env;
@@ -350,7 +353,7 @@ load_image(const char *filename)
pixman_image_t *image; pixman_image_t *image;
unsigned char header[4]; unsigned char header[4];
FILE *fp; FILE *fp;
int i; unsigned int i;
fp = fopen(filename, "rb"); fp = fopen(filename, "rb");
if (fp == NULL) if (fp == NULL)