all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Dr. David Kirkby" <david.kirkby@onetel.net>
To: 7366@debbugs.gnu.org
Subject: bug#7366: incompatible implicit declaration of built-in function 'alloca'
Date: Wed, 10 Nov 2010 15:40:35 +0000	[thread overview]
Message-ID: <4CDABCF3.5020002@onetel.net> (raw)

When building on Solaris 10 SPARC, I see several messages like this:



/rootpool2/local/kirkby/emacs-23.2/lib-src/emacsclient.c:1290:17: warning: 
incompatible implicit declaration of built-in function 'alloca'


Note the man page for Solaris says its defined in <alloca.h>



Here's part of the man page




kirkby@t2:64 ~$ man alloca

Standard C Library Functions                           malloc(3C)

NAME
      malloc, calloc, free, memalign, realloc,  valloc,  alloca  -
      memory allocator

SYNOPSIS
      #include <stdlib.h>

      void *malloc(size_t size);

      void *calloc(size_t nelem, size_t elsize);

      void free(void *ptr);

      void *memalign(size_t alignment, size_t size);

      void *realloc(void *ptr, size_t size);

      void *valloc(size_t size);

      #include <alloca.h>

      void *alloca(size_t size);

DESCRIPTION
      The  malloc()  and  free()  functions  provide   a   simple,
      general-purpose  memory  allocation  package.  The  malloc()
      function returns a pointer to a block of at least size bytes
      suitably  aligned for any use. If the space assigned by mal-
      loc() is overrun, the results are undefined.




Dave






             reply	other threads:[~2010-11-10 15:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-10 15:40 Dr. David Kirkby [this message]
2010-11-11  9:59 ` bug#7366: incompatible implicit declaration of built-in function 'alloca' Lawrence Mitchell
2010-11-13 17:23   ` Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CDABCF3.5020002@onetel.net \
    --to=david.kirkby@onetel.net \
    --cc=7366@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.