develooper Front page | perl.perl5.porters | Postings from February 2000

[ID 20000223.008] [PATCH 5.5.660] squash malloc.c compile warnings

Thread Next
Dominic Dunlop
February 23, 2000 12:24
[ID 20000223.008] [PATCH 5.5.660] squash malloc.c compile warnings
Message ID:
This is a bug report for perl from
generated with the help of perlbug 1.27 running under perl v5.5.660.

[Please enter your report here]

On compiling malloc.c, I see

malloc.c:1391: warning: `morecore' was declared implicitly `extern' and later `static'
malloc.c:1023: warning: previous declaration of `morecore'
malloc.c:1391: warning: type mismatch with previous implicit
malloc.c:1023: warning: previous implicit declaration of `morecore'
malloc.c:1391: warning: `morecore' was previously implicitly declared to return `int'
malloc.c:1391: warning: `morecore' was declared implicitly `extern' and later `static'

This shuts gcc up:

--- perl5.5.660/malloc.c-as-received	Tue Feb 22 10:19:53 2000
+++ perl5.5.660/malloc.c	Wed Feb 23 21:12:44 2000
@@ -972,6 +972,7 @@ Perl_malloc(register size_t nbytes)
   	register union overhead *p;
   	register int bucket;
   	register MEM_SIZE shiftr;
+	static void morecore(int bucket);
 #if defined(DEBUGGING) || defined(RCHECK)
 	MEM_SIZE size = nbytes;

[Please do not change anything below this line]

Site configuration information for perl v5.5.660:

Configured by domo at Wed Feb 23 17:22:21 WET 2000.

Summary of my perl5 (revision 5.0 version 5 subversion 660) configuration:
    osname=machten, osvers=4.1.4, archname=powerpc-machten
    uname='machten ppp100 5 0.5 powerpc '
    config_args='-Doptimize=-g -de'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
    usesocks=undef useperlio=undef d_sfio=undef
    use64bits=undef uselargefiles=define usemultiplicity=undef
    cc='cc', optimize='-g', gccversion=2.8.1
    cppflags='-DNOTDEF_MACHTEN -DREG_INFTY=2047 -DDEBUGGING -I/usr/local/include'
    ccflags ='-DNOTDEF_MACHTEN -DREG_INFTY=2047 -DDEBUGGING -I/usr/local/include'
    stdchar='char', d_stdstdio=undef, usevfork=true
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -Xlstack=1048576 -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib
    libs=-lndbm -lgdbm -ldb -lm -lc
    libc=/usr/lib/libc.a, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_none.xs, dlext=none, d_dlsymun=undef, ccdlflags=''
    cccdlflags='', lddlflags=''

Locally applied patches:

@INC for perl v5.5.660:

Environment for perl v5.5.660:
    LANG (unset)
    LANGUAGE (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)
Dominic Dunlop

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About