Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
47
Issues
47
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
PPSi
Commits
f0d49323
Commit
f0d49323
authored
Feb 25, 2016
by
Davide Ciminaghi
Committed by
Alessandro Rubini
Feb 29, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scripts/kconfig: fix "set but unused variable" warnings
Signed-off-by:
Davide Ciminaghi
<
ciminaghi@gnudd.com
>
parent
d0748684
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
9 deletions
+0
-9
conf.c
scripts/kconfig/conf.c
+0
-4
confdata.c
scripts/kconfig/confdata.c
+0
-3
textbox.c
scripts/kconfig/lxdialog/textbox.c
+0
-2
No files found.
scripts/kconfig/conf.c
View file @
f0d49323
...
...
@@ -156,14 +156,12 @@ static int conf_string(struct menu *menu)
static
int
conf_sym
(
struct
menu
*
menu
)
{
struct
symbol
*
sym
=
menu
->
sym
;
int
type
;
tristate
oldval
,
newval
;
while
(
1
)
{
printf
(
"%*s%s "
,
indent
-
1
,
""
,
_
(
menu
->
prompt
->
text
));
if
(
sym
->
name
)
printf
(
"(%s) "
,
sym
->
name
);
type
=
sym_get_type
(
sym
);
putchar
(
'['
);
oldval
=
sym_get_tristate_value
(
sym
);
switch
(
oldval
)
{
...
...
@@ -228,11 +226,9 @@ static int conf_choice(struct menu *menu)
{
struct
symbol
*
sym
,
*
def_sym
;
struct
menu
*
child
;
int
type
;
bool
is_new
;
sym
=
menu
->
sym
;
type
=
sym_get_type
(
sym
);
is_new
=
!
sym_has_value
(
sym
);
if
(
sym_is_changable
(
sym
))
{
conf_sym
(
menu
);
...
...
scripts/kconfig/confdata.c
View file @
f0d49323
...
...
@@ -406,7 +406,6 @@ int conf_write(const char *name)
int
type
,
l
;
const
char
*
str
;
time_t
now
;
int
use_timestamp
=
1
;
char
*
env
;
dirname
[
0
]
=
0
;
...
...
@@ -447,8 +446,6 @@ int conf_write(const char *name)
sym_calc_value
(
sym
);
time
(
&
now
);
env
=
getenv
(
"KCONFIG_NOTIMESTAMP"
);
if
(
env
&&
*
env
)
use_timestamp
=
0
;
fprintf
(
out
,
_
(
"#
\n
"
"# Automatically generated make config: don't edit
\n
"
...
...
scripts/kconfig/lxdialog/textbox.c
View file @
f0d49323
...
...
@@ -320,7 +320,6 @@ static void print_page(WINDOW * win, int height, int width)
*/
static
void
print_line
(
WINDOW
*
win
,
int
row
,
int
width
)
{
int
y
,
x
;
char
*
line
;
line
=
get_line
();
...
...
@@ -329,7 +328,6 @@ static void print_line(WINDOW * win, int row, int width)
waddch
(
win
,
' '
);
waddnstr
(
win
,
line
,
MIN
(
strlen
(
line
),
width
-
2
));
getyx
(
win
,
y
,
x
);
/* Clear 'residue' of previous line */
#if OLD_NCURSES
{
...
...
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