1From a57c498f6c25aa297e49533c242525f2b9da7048 Mon Sep 17 00:00:00 2001 2From: Khem Raj <raj.khem@gmail.com> 3Date: Thu, 13 Aug 2020 18:20:42 -0700 4Subject: [PATCH] Make extern declarations in header file 5 6curobj is a static object in other places as well. 7Fixes build with gcc10/-fno-common 8 9Upstream-Status: Pending 10Signed-off-by: Khem Raj <raj.khem@gmail.com> 11--- 12 fdesign/sp_spinner.c | 2 +- 13 lib/flinternal.h | 4 ++-- 14 2 files changed, 3 insertions(+), 3 deletions(-) 15 16diff --git a/fdesign/sp_spinner.c b/fdesign/sp_spinner.c 17index 04f2c19..6206daa 100644 18--- a/fdesign/sp_spinner.c 19+++ b/fdesign/sp_spinner.c 20@@ -29,7 +29,7 @@ 21 #include "spec/spinner_spec.h" 22 23 static FD_spinnerattrib * spn_attrib; 24-FL_OBJECT *curobj; 25+static FL_OBJECT *curobj; 26 27 28 /*************************************** 29diff --git a/lib/flinternal.h b/lib/flinternal.h 30index 06d847e..577bd10 100644 31--- a/lib/flinternal.h 32+++ b/lib/flinternal.h 33@@ -138,8 +138,8 @@ enum { 34 35 /* events.c or event related */ 36 37-FL_OBJECT * fli_handled_obj; 38-FL_OBJECT * fli_handled_parent; 39+extern FL_OBJECT * fli_handled_obj; 40+extern FL_OBJECT * fli_handled_parent; 41 42 void fli_obj_queue_delete( void ); 43 44-- 452.28.0 46 47