bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH] test-open: avoid compilation error with -D_FORTIFY_SOURCE=2


From: Pádraig Brady
Subject: Re: [PATCH] test-open: avoid compilation error with -D_FORTIFY_SOURCE=2
Date: Mon, 09 Dec 2013 14:26:57 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

On 12/05/2013 05:25 PM, Paul Eggert wrote:
> -static int
> +static int __always_inline
>  test_open (int (*func) (char const *, int, ...), bool print)

This fails `make check` in coreutils...

$ make V=1 TESTS= check
...
test-open.h:34:1: error: '__inline' is not at beginning of declaration 
[-Werror=old-style-declaration]

I verified the attached passes with the following and pushed.

  -g -O2
  -g -O2 -Werror=old-style-declaration
  -g -O1 -Wall  -D_FORTIFY_SOURCE=2
  -std=c89 -pedantic -Werror -g -O1 -Wall  -D_FORTIFY_SOURCE=2

cheers,
Pádraig.

Attachment: gl-test-open-build-fail.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]