Fix compiler warnings in a couple of the test programs.
authorMatthew Barnes <mbarnes@redhat.com>
Mon, 1 Sep 2008 13:26:17 +0000 (13:26 +0000)
committerMatthew Barnes <mbarnes@src.gnome.org>
Mon, 1 Sep 2008 13:26:17 +0000 (13:26 +0000)
2008-09-01  Matthew Barnes  <mbarnes@redhat.com>

* configure.in:
Fix compiler warnings in a couple of the test programs.

svn path=/trunk/; revision=9463

ChangeLog
configure.in

index 138bcb8..b62fa5b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-09-01  Matthew Barnes  <mbarnes@redhat.com>
+
+       * configure.in:
+       Fix compiler warnings in a couple of the test programs.
+
 2008-08-28  Patrick Ohly  <patrick.ohly@gmx.de>
 
        * Bug fix #518728: subtle link error: system libs before Evolution
index f20541e..4837abb 100644 (file)
@@ -349,8 +349,8 @@ if test $have_iconv = yes; then
 
 int main (int argc, char **argv)
 {
-       const char *from = "Some Text \xA4";
-       const char *utf8 = "Some Text \xC2\xA4";
+       char *from = "Some Text \xA4";
+       char *utf8 = "Some Text \xC2\xA4";
        char *transbuf = malloc (20), *trans = transbuf;
        iconv_t cd;
        size_t from_len = strlen (from), utf8_len = 20;
@@ -417,6 +417,7 @@ dnl Check to see if strftime supports the use of %l and %k
 
 AC_MSG_CHECKING(for %l and %k support in strftime)
 AC_TRY_RUN([
+#include <stdlib.h>
 #include <string.h>
 #include <time.h>