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
hooks: add a warning to detect unimplemented hooks
[smatch.git]
/
validation
/
Waddress-function.c
blob
fccbe2d89c477bc1e8cd373e68e60fea94082390
1
extern
void
func
(
void
);
2
3
int
global_function
(
void
)
4
{
5
if
(
func
)
6
return
1
;
7
return
0
;
8
}
9
10
/*
11
* check-name: Waddress-function
12
* check-command: sparse -Wno-decl -Waddress $file
13
*
14
* check-error-start
15
Waddress-function.c:5:13: warning: the address of a function will always evaluate as true
16
* check-error-end
17
*/