summaryrefslogtreecommitdiff
path: root/test/pkev.cpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-01-10 18:28:08 -0500
committerJonathan Bradley <jcb@pikum.xyz>2025-01-10 18:28:08 -0500
commit18880d891c9c2597420ebd606784ab9381d4a367 (patch)
tree1439997fe93d8eb94e521b5f832e039902d75844 /test/pkev.cpp
parent02325327fc34b25eafcf2f32f2641e53fd6e2440 (diff)
pk.h: -Wextra + clang compiler warnings
Diffstat (limited to 'test/pkev.cpp')
-rw-r--r--test/pkev.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/pkev.cpp b/test/pkev.cpp
index dd227ce..6258e02 100644
--- a/test/pkev.cpp
+++ b/test/pkev.cpp
@@ -31,10 +31,10 @@ struct ev {
bool handled;
};
-struct ev ev_one = {0};
-struct ev ev_two = {0};
+struct ev ev_one = {};
+struct ev ev_two = {};
-const pk_ev_mgr_id_T
+pk_ev_mgr_id_T
test_setup()
{
memset(&ev_one, 0, sizeof(struct ev));
@@ -115,7 +115,7 @@ int main(int argc, char *argv[])
{
const uint64_t cb_count = PK_EV_INIT_CB_COUNT + 2;
const uint64_t ev_count = PK_EV_INIT_EV_COUNT + 2;
- struct ev evs[ev_count] = {{0}};
+ struct ev evs[ev_count] = {};
const pk_ev_mgr_id_T evmgr = test_setup();
for (i = 0; i < ev_count; ++i) {
evs[i].evmgr = evmgr;
@@ -147,7 +147,7 @@ int main(int argc, char *argv[])
{
const uint64_t cb_count = 255;
const uint64_t ev_count = 255;
- struct ev evs[ev_count] = {{0}};
+ struct ev evs[ev_count] = {};
const pk_ev_mgr_id_T evmgr = test_setup();
for (i = 0; i < ev_count; ++i) {
evs[i].evmgr = evmgr;
@@ -183,7 +183,7 @@ int main(int argc, char *argv[])
int r;
const uint64_t cb_count = 256;
const uint64_t ev_count = 1;
- struct ev evs[ev_count] = {{0}};
+ struct ev evs[ev_count] = {};
const pk_ev_mgr_id_T evmgr = test_setup();
r = setjmp(jmp_env);
@@ -222,7 +222,7 @@ int main(int argc, char *argv[])
int r;
const uint64_t cb_count = 1;
const uint64_t ev_count = 256;
- struct ev evs[ev_count] = {{0}};
+ struct ev evs[ev_count] = {};
const pk_ev_mgr_id_T evmgr = test_setup();
r = setjmp(jmp_env);