diff options
author | John Wiegley <johnw@newartisans.com> | 2009-10-25 04:35:19 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-10-25 05:01:39 -0400 |
commit | 588f2ef2f51d7bdf209820bfb244034863601939 (patch) | |
tree | 7a473de7c117bf71bb802398823826ca4dfbfdca /configure.ac | |
parent | dc66840dd745863c06ad6513f9f66d589bcc29d8 (diff) | |
download | ledger-588f2ef2f51d7bdf209820bfb244034863601939.tar.gz ledger-588f2ef2f51d7bdf209820bfb244034863601939.tar.bz2 ledger-588f2ef2f51d7bdf209820bfb244034863601939.zip |
Fixed many compiler warnings from g++ 4.4
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 8b3b791e..ad1c4b37 100644 --- a/configure.ac +++ b/configure.ac @@ -88,7 +88,7 @@ AC_CACHE_CHECK( if (status < 0) { ; } else if (status == 0) { - char *arg0; + char *arg0 = NULL; status = dup2(pfd[0], STDIN_FILENO); @@ -160,8 +160,8 @@ AC_CACHE_CHECK( [[#include <stdlib.h> #include <stdio.h> #include <editline/readline.h>]], - [[rl_readline_name = "foo"; - char * line = readline("foo: "); + [[rl_readline_name = const_cast<char *>("foo"); + char * line = readline(const_cast<char *>("foo: ")); free(line);]])],[libedit_avail_cv_=true],[libedit_avail_cv_=false]) AC_LANG_POP LIBS=$libedit_save_libs]) |