Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
86e27dbd
Unverified
Commit
86e27dbd
authored
Mar 26, 2019
by
Christian Brauner
Committed by
GitHub
Mar 26, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2910 from tomponline/tp-2019-03-19/travis
Travis: Adds -Wall and -Werror cflags flags to automatic build.
parents
781f2bfa
3ece09c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
.travis.yml
.travis.yml
+2
-0
attach.c
src/lxc/attach.c
+3
-3
No files found.
.travis.yml
View file @
86e27dbd
...
@@ -9,6 +9,8 @@ before_install:
...
@@ -9,6 +9,8 @@ before_install:
script
:
script
:
-
./coccinelle/run-coccinelle.sh -i
-
./coccinelle/run-coccinelle.sh -i
-
git diff --exit-code
-
git diff --exit-code
-
export CFLAGS="-Wall -Werror"
-
export LDFLAGS="-pthread -lpthread"
-
./autogen.sh
-
./autogen.sh
-
rm -Rf build
-
rm -Rf build
-
mkdir build
-
mkdir build
...
...
src/lxc/attach.c
View file @
86e27dbd
...
@@ -126,7 +126,7 @@ static struct lxc_proc_context_info *lxc_proc_get_context_info(pid_t pid)
...
@@ -126,7 +126,7 @@ static struct lxc_proc_context_info *lxc_proc_get_context_info(pid_t pid)
static
inline
void
lxc_proc_close_ns_fd
(
struct
lxc_proc_context_info
*
ctx
)
static
inline
void
lxc_proc_close_ns_fd
(
struct
lxc_proc_context_info
*
ctx
)
{
{
for
(
int
i
=
0
;
i
<
LXC_NS_MAX
;
i
++
)
{
for
(
int
i
=
0
;
i
<
LXC_NS_MAX
;
i
++
)
{
__do_close_prot_errno
int
fd
=
move_fd
(
ctx
->
ns_fd
[
i
]);
__do_close_prot_errno
int
fd
ATTR_UNUSED
=
move_fd
(
ctx
->
ns_fd
[
i
]);
}
}
}
}
...
@@ -689,8 +689,8 @@ struct attach_clone_payload {
...
@@ -689,8 +689,8 @@ struct attach_clone_payload {
static
void
lxc_put_attach_clone_payload
(
struct
attach_clone_payload
*
p
)
static
void
lxc_put_attach_clone_payload
(
struct
attach_clone_payload
*
p
)
{
{
__do_close_prot_errno
int
ipc_socket
=
p
->
ipc_socket
;
__do_close_prot_errno
int
ipc_socket
ATTR_UNUSED
=
p
->
ipc_socket
;
__do_close_prot_errno
int
terminal_slave_fd
=
p
->
terminal_slave_fd
;
__do_close_prot_errno
int
terminal_slave_fd
ATTR_UNUSED
=
p
->
terminal_slave_fd
;
if
(
p
->
init_ctx
)
{
if
(
p
->
init_ctx
)
{
lxc_proc_put_context_info
(
p
->
init_ctx
);
lxc_proc_put_context_info
(
p
->
init_ctx
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment