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
181a780f
Unverified
Commit
181a780f
authored
Sep 22, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compiler: s/__noreturn__/__noreturn/g
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
cab25bd5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
lxc_init.c
src/lxc/cmd/lxc_init.c
+2
-2
compiler.h
src/lxc/compiler.h
+2
-2
arguments.c
src/lxc/tools/arguments.c
+3
-3
No files found.
src/lxc/cmd/lxc_init.c
View file @
181a780f
...
@@ -467,7 +467,7 @@ out:
...
@@ -467,7 +467,7 @@ out:
exit
(
exit_with
);
exit
(
exit_with
);
}
}
__noreturn
__
static
void
print_usage_exit
(
const
struct
option
longopts
[])
__noreturn
static
void
print_usage_exit
(
const
struct
option
longopts
[])
{
{
fprintf
(
stderr
,
"Usage: lxc-init [-n|--name=NAME] [-h|--help] [--usage] [--version]
\n
\
fprintf
(
stderr
,
"Usage: lxc-init [-n|--name=NAME] [-h|--help] [--usage] [--version]
\n
\
...
@@ -475,7 +475,7 @@ __noreturn__ static void print_usage_exit(const struct option longopts[])
...
@@ -475,7 +475,7 @@ __noreturn__ static void print_usage_exit(const struct option longopts[])
exit
(
0
);
exit
(
0
);
}
}
__noreturn
__
static
void
print_version_exit
(
void
)
__noreturn
static
void
print_version_exit
(
void
)
{
{
printf
(
"%s
\n
"
,
LXC_VERSION
);
printf
(
"%s
\n
"
,
LXC_VERSION
);
exit
(
0
);
exit
(
0
);
...
...
src/lxc/compiler.h
View file @
181a780f
...
@@ -40,9 +40,9 @@
...
@@ -40,9 +40,9 @@
#ifndef _noreturn_
#ifndef _noreturn_
#if __STDC_VERSION__ >= 201112L
#if __STDC_VERSION__ >= 201112L
#define __noreturn
__
_Noreturn
#define __noreturn _Noreturn
#else
#else
#define __noreturn
__
__attribute__((noreturn))
#define __noreturn __attribute__((noreturn))
#endif
#endif
#endif
#endif
...
...
src/lxc/tools/arguments.c
View file @
181a780f
...
@@ -88,7 +88,7 @@ is2big:
...
@@ -88,7 +88,7 @@ is2big:
return
-
1
;
return
-
1
;
}
}
__noreturn
__
static
void
print_usage_exit
(
const
struct
option
longopts
[],
__noreturn
static
void
print_usage_exit
(
const
struct
option
longopts
[],
const
struct
lxc_arguments
*
a_args
)
const
struct
lxc_arguments
*
a_args
)
{
{
...
@@ -135,13 +135,13 @@ __noreturn__ static void print_usage_exit(const struct option longopts[],
...
@@ -135,13 +135,13 @@ __noreturn__ static void print_usage_exit(const struct option longopts[],
exit
(
0
);
exit
(
0
);
}
}
__noreturn
__
static
void
print_version_exit
()
__noreturn
static
void
print_version_exit
()
{
{
printf
(
"%s
\n
"
,
lxc_get_version
());
printf
(
"%s
\n
"
,
lxc_get_version
());
exit
(
0
);
exit
(
0
);
}
}
__noreturn
__
static
void
print_help_exit
(
const
struct
lxc_arguments
*
args
,
__noreturn
static
void
print_help_exit
(
const
struct
lxc_arguments
*
args
,
int
code
)
int
code
)
{
{
fprintf
(
stderr
,
"\
fprintf
(
stderr
,
"\
...
...
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