Kaveh R. Ghazi
838f8562e6
Warning fixes:
...
* cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
* setenv.c (setenv): Initialize variable `ep'.
* sigsetmask.c (abort): Prototype.
* vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
__STDC__ for stdarg.h include.
(int_vasprintf): Prototype.
(checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
definition. Cast `global_total_width' in comparison.
(main): Prototype. Return a value.
* vfork.c (fork): Prototype.
* xexit.c: Include config.h.
From-SVN: r35178
2000-07-21 20:08:36 +00:00
Kaveh R. Ghazi
69197e7e5e
configure.in (ac_libiberty_warn_cflags): Add -pedantic.
...
libiberty:
* configure.in (ac_libiberty_warn_cflags): Add -pedantic.
* choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
* cp-demangle.c (demangle_char): Change parameter from char to int.
(demangle_expression, demangle_expr_primary): Remove extra
semi-colon in prototype.
* dyn-string.c (dyn_string_append_char): Change parameter from
char to int.
* memcmp.c (memcmp): Constify.
* mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
__extension__.
* partition.c (elem_compare): Prototype. Don't cast away
const-ness.
* setenv.c (setenv): Use braces to avoid ambiguous `else'.
include:
* demangle.h (demangling_styles): Remove trailing comma in enum.
* dyn-string.h (dyn_string_append_char): Change parameter from
char to int.
From-SVN: r34447
2000-06-07 21:13:14 +00:00
Philippe De Muyter
d7d36ea879
* setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
...
From-SVN: r30067
1999-10-18 02:36:29 -06:00
Jeff Law
e8bb250c8d
Whoops. Revert patch applied to the wrong tre.
...
From-SVN: r27737
1999-06-24 15:30:38 -06:00
Philippe De Muyter
4ef877d9fb
setenv.c (sys/types.h, stdio.h): Files included.
...
* setenv.c (sys/types.h, stdio.h): Files included.
* xstrdup.c (sys/types.h): File included.
For the gcc-2.95 branch only. Not to be migrated into the mainline tree
because it is incomplete.
From-SVN: r27736
1999-06-24 15:28:22 -06:00
Kaveh R. Ghazi
fee9125c10
putenv.c: Include ansidecl.h to define `const'.
...
* putenv.c: Include ansidecl.h to define `const'.
* setenv.c: Likewise.
From-SVN: r27221
1999-05-28 07:34:48 +00:00
Jeff Law
9eb4080f6f
Makefile.in (CFILES): Add putenv.c and setenv.c.
...
* Makefile.in (CFILES): Add putenv.c and setenv.c.
* configure.in (funcs): Add putenv and setenv.
(AC_CHECK_FUNCS): Check for putenv and setenv.
* configure: Rebuilt.
* putenv.c setenv.c: New files.
[[Split portion of a mixed commit.]]
From-SVN: r27162.2
1999-05-25 21:13:18 -06:00