From a97f306fd57878158962eb873c23f03a5c6da9db Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 2 Jun 2019 11:38:57 -0700 Subject: Clear -Wredundant-decls warnings from gcc 7.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit comm.c:55:15: warning: redundant redeclaration of ‘CM_entries’ [-Wredundant-decls] extern Widget CM_entries[NUM_CM_ENTRIES], TM_entries[NUM_TM_ENTRIES]; ^~~~~~~~~~ In file included from comm.c:46:0: editresP.h:339:15: note: previous declaration of ‘CM_entries’ was here extern Widget CM_entries[NUM_CM_ENTRIES]; ^~~~~~~~~~ comm.c:55:43: warning: redundant redeclaration of ‘TM_entries’ [-Wredundant-decls] extern Widget CM_entries[NUM_CM_ENTRIES], TM_entries[NUM_TM_ENTRIES]; ^~~~~~~~~~ In file included from comm.c:46:0: editresP.h:343:15: note: previous declaration of ‘TM_entries’ was here extern Widget TM_entries[NUM_TM_ENTRIES]; ^~~~~~~~~~ handler.c:502:16: warning: redundant redeclaration of ‘do_get_values’ [-Wredundant-decls] extern Boolean do_get_values; ^~~~~~~~~~~~~ In file included from handler.c:40:0: editresP.h:334:16: note: previous declaration of ‘do_get_values’ was here extern Boolean do_get_values; ^~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith --- comm.c | 2 -- handler.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/comm.c b/comm.c index 251e9d3..49fde2e 100644 --- a/comm.c +++ b/comm.c @@ -52,8 +52,6 @@ from The Open Group. static Atom atom_comm, atom_command, atom_resource_editor, atom_client_value; static Atom atom_editres_protocol; -extern Widget CM_entries[NUM_CM_ENTRIES], TM_entries[NUM_TM_ENTRIES]; - static void ClientTimedOut ( XtPointer data, XtIntervalId * id ); static void TellUserAboutMessage ( Widget label, ResCommand command ); static Boolean ConvertCommand ( Widget w, Atom * selection, Atom * target, diff --git a/handler.c b/handler.c index 7f45295..0beeb4c 100644 --- a/handler.c +++ b/handler.c @@ -499,8 +499,6 @@ SetResourceString(Widget w, XtPointer node_ptr, XtPointer junk) * Returns: none */ -extern Boolean do_get_values; - void ResourceListCallback(Widget list, XtPointer node_ptr, XtPointer junk) { -- cgit v1.2.3