diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2007-12-23 12:30:03 +0100 |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2007-12-23 12:30:03 +0100 |
commit | c69e57072d1a8554ba98a01ec1c2e12a346f442c (patch) | |
tree | 06696899d0db1d3aa230758eded33fbdbd48c254 /test | |
parent | 778c78864a4233f8f27575e9ff40e3323744dad2 (diff) |
Compile test also with all warnings and fix some of them.
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile.am | 1 | ||||
-rw-r--r-- | test/spectre-test.c | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index 24d65ba..08d7e79 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1,6 +1,7 @@ INCLUDES = \ -I$(top_srcdir) \ -I$(top_srcdir)/libspectre \ + $(SPECTRE_CFLAGS) \ $(CAIRO_CFLAGS) noinst_PROGRAMS = spectre-test diff --git a/test/spectre-test.c b/test/spectre-test.c index a275c94..1997261 100644 --- a/test/spectre-test.c +++ b/test/spectre-test.c @@ -248,7 +248,7 @@ test_export (SpectreDocument *document, spectre_exporter_free (exporter); } -void +static void test_save (SpectreDocument *document, const char *output_dir) { @@ -263,7 +263,7 @@ test_save (SpectreDocument *document, free (filename); } -void +static void test_save_to_pdf (SpectreDocument *document, const char *output_dir) { @@ -282,7 +282,7 @@ int main (int argc, char **argv) { SpectreDocument *document; SpectreRenderContext *rc; - int i; + unsigned int i; /* TODO: check argv */ |