Re: [PATCH 2/2] obstack.c: Fix some sparse warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Heya,

On Sun, Sep 11, 2011 at 21:26, Ramsay Jones <ramsay@xxxxxxxxxxxxxxxxxxx> wrote:
>    compat/obstack.c:399:1: error: symbol 'print_and_abort' redeclared with \
>        different type (originally declared at compat/obstack.c:95) \
>        - different modifiers

> @@ -395,7 +395,6 @@ _obstack_memory_used (struct obstack *h)
>  # endif
>
>  static void
> -__attribute__ ((noreturn))
>  print_and_abort (void)
>  {
>   /* Don't change any of these strings.  Yes, it would be possible to add

Wouldn't the better solution be to add noreturn to the declaration at
compat/obstack.c:95?

-- 
Cheers,

Sverre Rabbelier
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]