Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
d8fc3200
Commit
d8fc3200
authored
May 31, 2011
by
Arnaud Lacombe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kconfig: annotate non-trivial fall-trough
Signed-off-by:
Arnaud Lacombe
<
lacombar@gmail.com
>
parent
55922c9d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
0 deletions
+11
-0
scripts/kconfig/conf.c
scripts/kconfig/conf.c
+4
-0
scripts/kconfig/confdata.c
scripts/kconfig/confdata.c
+5
-0
scripts/kconfig/gconf.c
scripts/kconfig/gconf.c
+1
-0
scripts/kconfig/mconf.c
scripts/kconfig/mconf.c
+1
-0
No files found.
scripts/kconfig/conf.c
View file @
d8fc3200
...
...
@@ -106,6 +106,7 @@ static int conf_askvalue(struct symbol *sym, const char *def)
return
0
;
}
check_stdin
();
/* fall through */
case
oldaskconfig
:
fflush
(
stdout
);
xfgets
(
line
,
128
,
stdin
);
...
...
@@ -150,6 +151,7 @@ static int conf_string(struct menu *menu)
def
=
NULL
;
break
;
}
/* fall through */
default:
line
[
strlen
(
line
)
-
1
]
=
0
;
def
=
line
;
...
...
@@ -304,6 +306,7 @@ static int conf_choice(struct menu *menu)
break
;
}
check_stdin
();
/* fall through */
case
oldaskconfig
:
fflush
(
stdout
);
xfgets
(
line
,
128
,
stdin
);
...
...
@@ -369,6 +372,7 @@ static void conf(struct menu *menu)
check_conf
(
menu
);
return
;
}
/* fall through */
case
P_COMMENT
:
prompt
=
menu_get_prompt
(
menu
);
if
(
prompt
)
...
...
scripts/kconfig/confdata.c
View file @
d8fc3200
...
...
@@ -128,6 +128,7 @@ static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p)
sym
->
flags
|=
def_flags
;
break
;
}
/* fall through */
case
S_BOOLEAN
:
if
(
p
[
0
]
==
'y'
)
{
sym
->
def
[
def
].
tri
=
yes
;
...
...
@@ -148,6 +149,7 @@ static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p)
sym
->
type
=
S_STRING
;
goto
done
;
}
/* fall through */
case
S_STRING
:
if
(
*
p
++
!=
'"'
)
break
;
...
...
@@ -162,6 +164,7 @@ static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p)
conf_warning
(
"invalid string found"
);
return
1
;
}
/* fall through */
case
S_INT
:
case
S_HEX
:
done:
...
...
@@ -237,6 +240,7 @@ int conf_read_simple(const char *name, int def)
case
S_STRING
:
if
(
sym
->
def
[
def
].
val
)
free
(
sym
->
def
[
def
].
val
);
/* fall through */
default:
sym
->
def
[
def
].
val
=
NULL
;
sym
->
def
[
def
].
tri
=
no
;
...
...
@@ -363,6 +367,7 @@ int conf_read(const char *name)
break
;
if
(
!
sym_is_choice
(
sym
))
goto
sym_ok
;
/* fall through */
default:
if
(
!
strcmp
(
sym
->
curr
.
val
,
sym
->
def
[
S_DEF_USER
].
val
))
goto
sym_ok
;
...
...
scripts/kconfig/gconf.c
View file @
d8fc3200
...
...
@@ -1172,6 +1172,7 @@ static gchar **fill_row(struct menu *menu)
row
[
COL_BTNVIS
]
=
GINT_TO_POINTER
(
TRUE
);
if
(
sym_is_choice
(
sym
))
break
;
/* fall through */
case
S_TRISTATE
:
val
=
sym_get_tristate_value
(
sym
);
switch
(
val
)
{
...
...
scripts/kconfig/mconf.c
View file @
d8fc3200
...
...
@@ -845,6 +845,7 @@ int main(int ac, char **av)
"
\n\n
"
));
return
1
;
}
/* fall through */
case
-
1
:
printf
(
_
(
"
\n\n
"
"*** End of the configuration.
\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