From 6295cca03b37b576ab9084176253a7adf2b6c135 Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Sat, 1 Jul 2017 23:07:54 -0500
Subject: [PATCH] tweaks: correct a parameter type, and correct two empty
 initializations
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This avoids some warnings when compiled with -pedantic:

    ISO C forbids comparison of ‘void *’ with function pointer
    ISO C forbids empty initializer braces
---
 src/global.c | 4 ++--
 src/rcfile.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/global.c b/src/global.c
index 4f146043..8ab88926 100644
--- a/src/global.c
+++ b/src/global.c
@@ -227,10 +227,10 @@ regmatch_t regmatches[10];
 int hilite_attribute = A_REVERSE;
 	/* The curses attribute we use to highlight something. */
 #ifndef DISABLE_COLOR
-char* specified_color_combo[] = {};
+char* specified_color_combo[] = {'\0'};
 	/* The color combinations as specified in the rcfile. */
 #endif
-int interface_color_pair[] = {};
+int interface_color_pair[] = {0};
 	/* The processed color pairs for the interface elements. */
 
 char *homedir = NULL;
diff --git a/src/rcfile.c b/src/rcfile.c
index 9a827a24..d72f1ce1 100644
--- a/src/rcfile.c
+++ b/src/rcfile.c
@@ -350,7 +350,7 @@ void parse_syntax(char *ptr)
 /* Check whether the given executable function is "universal" (meaning
  * any horizontal movement or deletion) and thus is present in almost
  * all menus. */
-bool is_universal(void (*func))
+bool is_universal(void (*func)(void))
 {
     if (func == do_left || func == do_right ||
 	func == do_home_void || func == do_end_void ||
-- 
GitLab