From 8898cb3f12bb606d715e365ab39acb06bcd544e4 Mon Sep 17 00:00:00 2001 From: Cheyenne Wills Date: Fri, 26 Jul 2019 14:57:02 -0600 Subject: [PATCH] gtx: Avoid incomplete function type in casts clang complains that these casts contain an incomplete function type (since the function argument is omitted rather than declared to be void). Since we just need the cast to pointer type, let the compiler do it implicitly and pass stock NULL, rather than trying to force a cast to function-pointer type. Reviewed-on: https://gerrit.openafs.org/13726 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk (cherry picked from commit d6262c3f391e4176bec207fd0e8d4d6091a7f4e2) Change-Id: I4544c37591bb68ff6bbe345192490bb79c843fc5 Reviewed-on: https://gerrit.openafs.org/13749 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk Reviewed-by: Marcio Brito Barbosa Reviewed-by: Michael Meffie Reviewed-by: Stephan Wiesand --- src/gtx/gtxtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtx/gtxtest.c b/src/gtx/gtxtest.c index 3626a36d7..64876e7c7 100644 --- a/src/gtx/gtxtest.c +++ b/src/gtx/gtxtest.c @@ -234,7 +234,7 @@ main(int argc, char **argv) keymap_BindToString(frameB->keymap, "a", SwitchToACmd, NULL, NULL); keymap_BindToString(frameB->keymap, "b", StupidCmd, NULL, NULL); keymap_BindToString(frameB->keymap, "d", NoCallCmd, NULL, NULL); - keymap_BindToString(frameB->keymap, "d", (int (*)())0, NULL, NULL); + keymap_BindToString(frameB->keymap, "d", NULL, NULL, NULL); keymap_BindToString(frameB->keymap, "\033d", NoCallCmd, NULL, NULL); gtxframe_AddMenu(frameB, "FrameA", "a"); -- 2.39.5