mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
regression tests: fix gcc-5 inline confusion
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. Signed-off-by: Steve Beattie <steve@nxnw.org> Acked-by: Seth Arnold <seth.arnold@canonical.com>
This commit is contained in:
parent
fc3a7f49cf
commit
98c6087c54
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
#define SD_ID_MAGIC 0x8c235e38
|
||||
|
||||
inline int do_open (char * file)
|
||||
static inline int do_open (char * file)
|
||||
{
|
||||
int fd, rc;
|
||||
char buf[128];
|
||||
|
|
Loading…
Add table
Reference in a new issue