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
e00666d5
Commit
e00666d5
authored
Apr 30, 2014
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clang: Fix build warnings for 3.4
Signed-off-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
parent
1a255d79
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
5 deletions
+12
-5
log.h
src/lxc/log.h
+9
-2
lxc_autostart.c
src/lxc/lxc_autostart.c
+1
-1
lxc_start.c
src/lxc/lxc_start.c
+1
-1
lxccontainer.c
src/lxc/lxccontainer.c
+1
-1
No files found.
src/lxc/log.h
View file @
e00666d5
...
...
@@ -44,6 +44,13 @@
#define LXC_LOG_PREFIX_SIZE 32
#define LXC_LOG_BUFFER_SIZE 512
/* This attribute is required to silence clang warnings */
#if defined(__GNUC__)
#define ATTR_UNUSED __attribute__ ((unused))
#else
#define ATTR_UNUSED
#endif
/* predefined priorities. */
enum
lxc_loglevel
{
LXC_LOG_PRIORITY_TRACE
,
...
...
@@ -180,10 +187,10 @@ __lxc_log(const struct lxc_log_category* category,
*/
#define lxc_log_priority_define(acategory, PRIORITY) \
\
static inline void LXC_##PRIORITY(struct lxc_log_locinfo *, \
ATTR_UNUSED
static inline void LXC_##PRIORITY(struct lxc_log_locinfo *, \
const char *, ...) __attribute__ ((format (printf, 2, 3))); \
\
static inline void LXC_##PRIORITY(struct lxc_log_locinfo* locinfo, \
ATTR_UNUSED
static inline void LXC_##PRIORITY(struct lxc_log_locinfo* locinfo, \
const char* format, ...) \
{ \
if (lxc_log_priority_is_enabled(acategory, \
...
...
src/lxc/lxc_autostart.c
View file @
e00666d5
...
...
@@ -217,7 +217,7 @@ int main(int argc, char *argv[])
struct
lxc_list
*
it
,
*
next
;
char
*
const
default_start_args
[]
=
{
"/sbin/init"
,
'\0'
,
NULL
,
};
if
(
lxc_arguments_parse
(
&
my_args
,
argc
,
argv
))
...
...
src/lxc/lxc_start.c
View file @
e00666d5
...
...
@@ -207,7 +207,7 @@ int main(int argc, char *argv[])
char
*
rcfile
=
NULL
;
char
*
const
default_args
[]
=
{
"/sbin/init"
,
'\0'
,
NULL
,
};
struct
lxc_container
*
c
;
...
...
src/lxc/lxccontainer.c
View file @
e00666d5
...
...
@@ -555,7 +555,7 @@ static bool lxcapi_start(struct lxc_container *c, int useinit, char * const argv
FILE
*
pid_fp
=
NULL
;
char
*
default_args
[]
=
{
"/sbin/init"
,
'\0'
,
NULL
,
};
/* container exists */
...
...
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