aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-08-14 10:10:23 +0200
committervan Hauser <vh@thc.org>2020-08-14 10:10:23 +0200
commitce513c4f3e97d293e57e0ef90ec9e501871c5644 (patch)
treea7b4b82fa5b79b6f17d8b7f6a3b4923a1994ed11 /include
parentce92adcb9bcaba4894b58a26b2a10b11ef249c0a (diff)
downloadafl++-ce513c4f3e97d293e57e0ef90ec9e501871c5644.tar.gz
fix llvm12 -fuseld warning
Diffstat (limited to 'include')
-rw-r--r--include/afl-fuzz.h7
-rw-r--r--include/alloc-inl.h1
2 files changed, 5 insertions, 3 deletions
diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h
index 034e8de2..ca7d10fe 100644
--- a/include/afl-fuzz.h
+++ b/include/afl-fuzz.h
@@ -174,7 +174,7 @@ struct extra_data {
struct auto_extra_data {
- u8 data[MAX_AUTO_EXTRA]; /* Dictionary token data */
+ u8 data[MAX_AUTO_EXTRA]; /* Dictionary token data */
u32 len; /* Dictionary token length */
u32 hit_cnt; /* Use count in the corpus */
@@ -579,8 +579,9 @@ typedef struct afl_state {
struct extra_data *extras; /* Extra tokens to fuzz with */
u32 extras_cnt; /* Total number of tokens read */
- struct auto_extra_data a_extras[MAX_AUTO_EXTRAS]; /* Automatically selected extras */
- u32 a_extras_cnt; /* Total number of tokens available */
+ struct auto_extra_data
+ a_extras[MAX_AUTO_EXTRAS]; /* Automatically selected extras */
+ u32 a_extras_cnt; /* Total number of tokens available */
/* afl_postprocess API - Now supported via custom mutators */
diff --git a/include/alloc-inl.h b/include/alloc-inl.h
index 0518a8c9..306cc622 100644
--- a/include/alloc-inl.h
+++ b/include/alloc-inl.h
@@ -176,6 +176,7 @@ static inline u8 *DFL_ck_strdup(u8 *str) {
return (u8 *)memcpy(ret, str, size);
}
+
/* In non-debug mode, we just do straightforward aliasing of the above
functions to user-visible names such as ck_alloc(). */