diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1998-12-22 06:57:17 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1998-12-22 06:57:17 +0000 |
commit | 087aa3989488d52b6c5be69879ead4255f951840 (patch) | |
tree | 3469ef763250330165a80bdbf1c8e2d35e50ea42 /libiberty/choose-temp.c | |
parent | 4510c86d24c903d9aafd2cd5fd76d3838c4f6494 (diff) | |
download | gcc-087aa3989488d52b6c5be69879ead4255f951840.zip gcc-087aa3989488d52b6c5be69879ead4255f951840.tar.gz gcc-087aa3989488d52b6c5be69879ead4255f951840.tar.bz2 |
Warning fixes:
* argv.c (buildargv): Cast the result of alloca in assignment.
* choose-temp.c: Include stdlib.h.
* cplus-dem.c (demangle_arm_pt): Remove unused prototype.
(snarf_numeric_literal): Constify first parameter.
(code_for_qualifier): Avoid a gcc extension, make the parameter an
int, not a char.
(demangle_qualifier): Likewise.
(demangle_signature): Cast the argument of a ctype function to
unsigned char.
(arm_pt): Add parens around assignment used as truth value.
(demangle_arm_hp_template): Constify variable `args'.
(do_hpacc_template_const_value): Cast the argument of a ctype
function to unsigned char.
(do_hpacc_template_literal): Remove unused variable `i'.
(snarf_numeric_literal): Constify parameter `args'.
Cast the argument of a ctype function to unsigned char.
* floatformat.c (floatformat_to_double): Add explicit braces to
avoid ambiguous `else'.
* fnmatch.c (fnmatch): Change type of variables `c', `c1',
`cstart' and `cend' to unsigned char. Cast the argument of macro
`FOLD', which uses ctype functions, to unsigned char.
* objalloc.c (free): Add prototype.
From-SVN: r24392
Diffstat (limited to 'libiberty/choose-temp.c')
-rw-r--r-- | libiberty/choose-temp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libiberty/choose-temp.c b/libiberty/choose-temp.c index c295ca1..49c7386 100644 --- a/libiberty/choose-temp.c +++ b/libiberty/choose-temp.c @@ -31,6 +31,9 @@ Boston, MA 02111-1307, USA. */ #ifdef HAVE_UNISTD_H #include <unistd.h> #endif +#ifdef HAVE_STDLIB_H +#include <stdlib.h> +#endif #ifdef HAVE_SYS_FILE_H #include <sys/file.h> /* May get R_OK, etc. on some systems. */ #endif |