[apparmor] [patch] regression tests: fix gcc-5 inline confusion
John Johansen
john.johansen at canonical.com
Wed Mar 4 06:47:46 UTC 2015
On 03/03/2015 11:01 AM, Steve Beattie wrote:
> On Tue, Mar 03, 2015 at 10:58:57AM -0800, Steve Beattie wrote:
>> Parts of the regression tests that use the do_open() inline function
>> from changehat.h fail to build under gcc-5 like so:
>>
>> cc -g -O0 -Wall -Wstrict-prototypes changeprofile.c -lapparmor -o changeprofile
>> /tmp/ccT6GE6k.o: In function `main':
>> /home/ubuntu/bzr/apparmor/tests/regression/apparmor/changeprofile.c:43: undefined reference to `do_open'
>> collect2: error: ld returned 1 exit status
>> <builtin>: recipe for target 'changeprofile' failed
>>
>> This patch converts the do_open function declaration to be static
>> inline, which apparently keeps gcc-5 from getting confused.
>
> Oh, it's intended for both trunk and 2.9. Thanks.
>
for trunk and 2.9
Acked-by: John Johansen <john.johansen at canonical.com>
More information about the AppArmor
mailing list