From 9da8eb6663d0ba046bc0570172c549d421de043a Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 12 Aug 2020 23:39:32 -0700
Subject: [PATCH] get-edid: define quiet once

Fixes build with gcc 10

Upstream-Status: Pending

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 get-edid/classic.c | 2 +-
 get-edid/i2c.c     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/get-edid/classic.c b/get-edid/classic.c
index 9cc8ee3..b13f5f0 100644
--- a/get-edid/classic.c
+++ b/get-edid/classic.c
@@ -26,7 +26,7 @@ typedef byte* real_ptr;
 #define dosmemput(buffer,length,offset) memcpy(offset,buffer,length)
 
 #define display(...) if (quiet == 0) { fprintf(stderr, __VA_ARGS__); }
-int quiet;
+extern int quiet;
 
 real_ptr far_ptr_to_real_ptr( uint32 farptr )
 {
diff --git a/get-edid/i2c.c b/get-edid/i2c.c
index 625d7cb..0929e98 100644
--- a/get-edid/i2c.c
+++ b/get-edid/i2c.c
@@ -15,7 +15,7 @@
 
 //Ideas (but not too much actual code) taken from i2c-tools. Thanks guys.
 
-int quiet;
+extern int quiet;
 
 #define display(...) if (quiet == 0) { fprintf(stderr, __VA_ARGS__); }
 
-- 
2.28.0

