git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add the GIT_SENTINEL macro

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 19, 2013, 03:30 UTC
Message-ID
<7vr4evz0oc.fsf@alter.siamese.dyndns.org>
In-Reply-To
<51E849C4.7020305@ramsay1.demon.co.uk>
Ramsay Jones <ramsay@ramsay1.demon.co.uk> writes:
Show 11 quoted lines
> The sentinel function attribute is not understood by versions of
> the gcc compiler prior to v4.0. At present, for earlier versions
> of gcc, the build issues 108 warnings related to the unknown
> attribute. In order to suppress the warnings, we conditionally
> define the GIT_SENTINEL macro to provide the sentinel attribute
> for gcc v4.0 and newer.
>
> Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
> ---
>
> This was built on the next branch
It seems to apply well on the tip of jk/gcc-function-attributes.
 - This macro is not about "git" at all, so I'll edit the patch to
   call it GCC_ATTR_SENTINEL before applying.
 - Also I'll drop the (0) at the end.
Thanks.
Previous: Jonathan NiederNext: Jonathan Nieder
Message 4 of 7 in “Add the GIT_SENTINEL macro”
  1. Add the GIT_SENTINEL macroRamsay Jones, Jul 18, 2013
  2. Jeff KingJul 18, 2013
  3. Jonathan NiederJul 18, 2013
  4. Junio C HamanoJul 19, 2013
  5. Jonathan NiederJul 19, 2013
  6. Junio C HamanoJul 19, 2013
  7. Ramsay JonesJul 20, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.