repo.or.cz
/
smatch.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
param_key: use get_name_sym_from_key() instead of return_state_to_var_sym()
[smatch.git]
/
validation
/
old-style-definition1.c
blob
f65d7dfe3187295741523ba9ebbc0ad924522706
1
extern
int
foo
(
int
a
,
void
*
b
);
2
3
int
foo
(
a
,
b
)
4
int
a
;
5
void
*
b
;
6
{
7
if
(
b
)
8
return
a
;
9
}
10
11
/*
12
* check-name: old-stype-definition enabled
13
* check-command: sparse -Wold-style-definition $file
14
*
15
* check-error-start
16
old-style-definition1.c:4:9: warning: non-ANSI definition of function 'foo'
17
* check-error-end
18
*/