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
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
#include "../mem.h"
#include "../gfxdevice.h"
#include "../gfxtools.h"
+#include "../gfximage.h"
typedef struct _internal {
PDF* p;
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; \
} \
-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*)); \
} \
-static name##_destroy(name##_t*h) \
+static void name##_destroy(name##_t*h) \
{ \
free((h)->elements); \
}
}
}
-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)
{
#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)
{
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);