git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9739339
)
fixed compiler warnings
author
Matthias Kramm
<kramm@quiss.org>
Sat, 9 Jan 2010 00:30:40 +0000
(16:30 -0800)
committer
Matthias Kramm
<kramm@quiss.org>
Sat, 9 Jan 2010 00:30:40 +0000
(16:30 -0800)
configure
patch
|
blob
|
history
configure.in
patch
|
blob
|
history
lib/devices/pdf.c
patch
|
blob
|
history
lib/gfxpoly/heap.h
patch
|
blob
|
history
lib/gfxpoly/poly.c
patch
|
blob
|
history
lib/gfxpoly/renderpoly.c
patch
|
blob
|
history
lib/python/tags.c
patch
|
blob
|
history
diff --git
a/configure
b/configure
index
cefa0fb
..
043e6f2
100755
(executable)
--- a/
configure
+++ b/
configure
@@
-1901,7
+1901,7
@@
if test "x${srcdir}" != "x."; then
exit 1
fi
exit 1
fi
-WARNINGS="-Wparentheses -Wimplicit -Wreturn-type -Wno-write-strings"
+WARNINGS="-Wimplicit -Wreturn-type -Wno-write-strings"
if test "x$ENABLE_WARNINGS" '!=' "x";then
WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -Wno-write-strings -D_FORTIFY_SOURCE=2 "
fi
if test "x$ENABLE_WARNINGS" '!=' "x";then
WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -Wno-write-strings -D_FORTIFY_SOURCE=2 "
fi
diff --git
a/configure.in
b/configure.in
index
4ed3ada
..
f9ff1e7
100644
(file)
--- a/
configure.in
+++ b/
configure.in
@@
-43,7
+43,7
@@
if test "x${srcdir}" != "x."; then
exit 1
fi
exit 1
fi
-WARNINGS="-Wparentheses -Wimplicit -Wreturn-type -Wno-write-strings"
+WARNINGS="-Wimplicit -Wreturn-type -Wno-write-strings"
if test "x$ENABLE_WARNINGS" '!=' "x";then
WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -Wno-write-strings -D_FORTIFY_SOURCE=2 "
fi
if test "x$ENABLE_WARNINGS" '!=' "x";then
WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -Wno-write-strings -D_FORTIFY_SOURCE=2 "
fi
diff --git
a/lib/devices/pdf.c
b/lib/devices/pdf.c
index
ef67d49
..
bbbf9be
100644
(file)
--- a/
lib/devices/pdf.c
+++ b/
lib/devices/pdf.c
@@
-33,6
+33,7
@@
#include "../mem.h"
#include "../gfxdevice.h"
#include "../gfxtools.h"
#include "../mem.h"
#include "../gfxdevice.h"
#include "../gfxtools.h"
+#include "../gfximage.h"
typedef struct _internal {
PDF* p;
typedef struct _internal {
PDF* p;
diff --git
a/lib/gfxpoly/heap.h
b/lib/gfxpoly/heap.h
index
cd5114d
..
7987337
100644
(file)
--- a/
lib/gfxpoly/heap.h
+++ b/
lib/gfxpoly/heap.h
@@
-55,20
+55,20
@@
static t* name##_get(name##_t*h) \
break; \
} \
if(child+1 < h->size && lt(h->elements[child+1], \
break; \
} \
if(child+1 < h->size && lt(h->elements[child+1], \
- h->elements[child])) \
+ h->elements[child])) \
child++; \
h->elements[node] = h->elements[child]; \
} while(lt(h->elements[child],node_p)); \
h->elements[node] = node_p; \
return r; \
} \
child++; \
h->elements[node] = h->elements[child]; \
} while(lt(h->elements[child],node_p)); \
h->elements[node] = node_p; \
return r; \
} \
-static name##_init(name##_t*h) \
+static void name##_init(name##_t*h) \
{ \
memset(h, 0, sizeof(*h)); \
h->max_size = 15; \
h->elements = malloc(h->max_size*sizeof(t*)); \
} \
{ \
memset(h, 0, sizeof(*h)); \
h->max_size = 15; \
h->elements = malloc(h->max_size*sizeof(t*)); \
} \
-static name##_destroy(name##_t*h) \
+static void name##_destroy(name##_t*h) \
{ \
free((h)->elements); \
}
{ \
free((h)->elements); \
}
diff --git
a/lib/gfxpoly/poly.c
b/lib/gfxpoly/poly.c
index
95a8a22
..
53b45e2
100644
(file)
--- a/
lib/gfxpoly/poly.c
+++ b/
lib/gfxpoly/poly.c
@@
-260,8
+260,8
@@
static void event_dump(event_t*e)
}
}
}
}
-static inline max32(int32_t v1, int32_t v2) {return v1>v2?v1:v2;}
-static inline min32(int32_t v1, int32_t v2) {return v1<v2?v1:v2;}
+static inline int32_t max32(int32_t v1, int32_t v2) {return v1>v2?v1:v2;}
+static inline int32_t min32(int32_t v1, int32_t v2) {return v1<v2?v1:v2;}
static void segment_dump(segment_t*s)
{
static void segment_dump(segment_t*s)
{
diff --git
a/lib/gfxpoly/renderpoly.c
b/lib/gfxpoly/renderpoly.c
index
9c9f11f
..
57e341c
100644
(file)
--- a/
lib/gfxpoly/renderpoly.c
+++ b/
lib/gfxpoly/renderpoly.c
@@
-198,8
+198,8
@@
unsigned char* render_polygon(gfxpoly_t*polygon, intbbox_t*bbox, double zoom, wi
#define MAX_WIDTH 8192
#define MAX_HEIGHT 4096
#define MAX_WIDTH 8192
#define MAX_HEIGHT 4096
-static inline max(double a, double b) {return a>b?a:b;}
-static inline min(double a, double b) {return a<b?a:b;}
+static inline double max(double a, double b) {return a>b?a:b;}
+static inline double min(double a, double b) {return a<b?a:b;}
static int adjust_x(int xmin, int xmax)
{
static int adjust_x(int xmin, int xmax)
{
diff --git
a/lib/python/tags.c
b/lib/python/tags.c
index
455e87f
..
2cd47c9
100644
(file)
--- a/
lib/python/tags.c
+++ b/
lib/python/tags.c
@@
-186,7
+186,7
@@
static PyObject* po_create(PyObject* self, PyObject* args, PyObject* kwargs,char
po->depth = depth;
po->clipdepth = clipdepth;
po->ratio = ratio;
po->depth = depth;
po->clipdepth = clipdepth;
po->ratio = ratio;
- po->name = (unsigned char*)name;
+ po->name = name;
po->move = move;
if(clipdepth) po->clipdepth = clipdepth;
if(matrix) po->matrix = matrix_getMatrix(matrix);
po->move = move;
if(clipdepth) po->clipdepth = clipdepth;
if(matrix) po->matrix = matrix_getMatrix(matrix);