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
avoid useless warning for 'bool <- restricted type' conversion
[smatch.git]
/
validation
/
pure-function.c
blob
04bb85e4dbb15f1caa607de697859f310734634a
1
2
static
__attribute__
((
__pure__
))
int
pure1
(
void
)
3
{
4
int
i
=
0
;
5
return
i
;
6
}
7
8
static
__attribute__
((
__pure__
))
void
*
pure2
(
void
)
9
{
10
void
*
i
= (
void
*)
0
;
11
return
i
;
12
}
13
14
/*
15
* check-name: Pure function attribute
16
*/