projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9515acc
)
Fix strict-warnings build
author
Matt Caswell
<matt@openssl.org>
Mon, 18 Jul 2016 09:28:45 +0000
(10:28 +0100)
committer
Matt Caswell
<matt@openssl.org>
Mon, 18 Jul 2016 09:28:45 +0000
(10:28 +0100)
The i2d_SCT_LIST function is declared as __owur, therefore we need to check
the result or a --strict-warnings build will fail.
Reviewed-by: Rich Salz <rsalz@openssl.org>
fuzz/ct.c
patch
|
blob
|
history
diff --git
a/fuzz/ct.c
b/fuzz/ct.c
index 0abcd8aa97d30a96b1f157f1bf2c1ee840d526ac..411ccef4a06e54cc53c8f7a2103d33ba9ed55519 100644
(file)
--- a/
fuzz/ct.c
+++ b/
fuzz/ct.c
@@
-29,7
+29,9
@@
int FuzzerTestOneInput(const uint8_t *buf, size_t len) {
SCT_LIST_print(scts, bio, 4, "\n", NULL);
BIO_free(bio);
- i2d_SCT_LIST(scts, &der);
+ if (i2d_SCT_LIST(scts, &der)) {
+ /* Silence unused result warning */
+ }
OPENSSL_free(der);
SCT_LIST_free(scts);