[hackers] [svkbd] remove unneeded initialization to zero || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Sun, 13 Jun 2021 22:39:55 +0200 (CEST)

commit 2306b8eb408ad8ea7bcb73f8bff90272e7b4b952
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
AuthorDate: Sun Jun 13 22:35:16 2021 +0200
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Sun Jun 13 22:35:16 2021 +0200

    remove unneeded initialization to zero
    
    This removes a warning when compiling with -Wall (tested with clang 11.1.0).

diff --git a/svkbd.c b/svkbd.c
index 0ad1836..44f5bb3 100644
--- a/svkbd.c
+++ b/svkbd.c
_AT_@ -136,8 +136,8 @@ Bool sigtermd = False;
 #endif
 #include LAYOUT
 
-static Key keys[KEYS] = { NULL };
-static Key* layers[LAYERS];
+static Key keys[KEYS];
+static Key *layers[LAYERS];
 
 void
 motionnotify(XEvent *e)
Received on Sun Jun 13 2021 - 22:39:55 CEST

This archive was generated by hypermail 2.3.0 : Sun Jun 13 2021 - 22:48:31 CEST