Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
a1345a12
Commit
a1345a12
authored
Jan 12, 2016
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scripts/kconfig: remove annoying warnings
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
8ed58a73
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
7 deletions
+0
-7
conf.c
scripts/kconfig/conf.c
+0
-4
confdata.c
scripts/kconfig/confdata.c
+0
-3
No files found.
scripts/kconfig/conf.c
View file @
a1345a12
...
@@ -156,14 +156,12 @@ static int conf_string(struct menu *menu)
...
@@ -156,14 +156,12 @@ static int conf_string(struct menu *menu)
static
int
conf_sym
(
struct
menu
*
menu
)
static
int
conf_sym
(
struct
menu
*
menu
)
{
{
struct
symbol
*
sym
=
menu
->
sym
;
struct
symbol
*
sym
=
menu
->
sym
;
int
type
;
tristate
oldval
,
newval
;
tristate
oldval
,
newval
;
while
(
1
)
{
while
(
1
)
{
printf
(
"%*s%s "
,
indent
-
1
,
""
,
_
(
menu
->
prompt
->
text
));
printf
(
"%*s%s "
,
indent
-
1
,
""
,
_
(
menu
->
prompt
->
text
));
if
(
sym
->
name
)
if
(
sym
->
name
)
printf
(
"(%s) "
,
sym
->
name
);
printf
(
"(%s) "
,
sym
->
name
);
type
=
sym_get_type
(
sym
);
putchar
(
'['
);
putchar
(
'['
);
oldval
=
sym_get_tristate_value
(
sym
);
oldval
=
sym_get_tristate_value
(
sym
);
switch
(
oldval
)
{
switch
(
oldval
)
{
...
@@ -228,11 +226,9 @@ static int conf_choice(struct menu *menu)
...
@@ -228,11 +226,9 @@ static int conf_choice(struct menu *menu)
{
{
struct
symbol
*
sym
,
*
def_sym
;
struct
symbol
*
sym
,
*
def_sym
;
struct
menu
*
child
;
struct
menu
*
child
;
int
type
;
bool
is_new
;
bool
is_new
;
sym
=
menu
->
sym
;
sym
=
menu
->
sym
;
type
=
sym_get_type
(
sym
);
is_new
=
!
sym_has_value
(
sym
);
is_new
=
!
sym_has_value
(
sym
);
if
(
sym_is_changable
(
sym
))
{
if
(
sym_is_changable
(
sym
))
{
conf_sym
(
menu
);
conf_sym
(
menu
);
...
...
scripts/kconfig/confdata.c
View file @
a1345a12
...
@@ -406,7 +406,6 @@ int conf_write(const char *name)
...
@@ -406,7 +406,6 @@ int conf_write(const char *name)
int
type
,
l
;
int
type
,
l
;
const
char
*
str
;
const
char
*
str
;
time_t
now
;
time_t
now
;
int
use_timestamp
=
1
;
char
*
env
;
char
*
env
;
dirname
[
0
]
=
0
;
dirname
[
0
]
=
0
;
...
@@ -447,8 +446,6 @@ int conf_write(const char *name)
...
@@ -447,8 +446,6 @@ int conf_write(const char *name)
sym_calc_value
(
sym
);
sym_calc_value
(
sym
);
time
(
&
now
);
time
(
&
now
);
env
=
getenv
(
"KCONFIG_NOTIMESTAMP"
);
env
=
getenv
(
"KCONFIG_NOTIMESTAMP"
);
if
(
env
&&
*
env
)
use_timestamp
=
0
;
fprintf
(
out
,
_
(
"#
\n
"
fprintf
(
out
,
_
(
"#
\n
"
"# Automatically generated make config: don't edit
\n
"
"# Automatically generated make config: don't edit
\n
"
...
...
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