diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-01-20 02:38:50 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-01-20 02:38:50 +0000 |
commit | 21f65507050ea0f5dc82fb082c8d18af85b458de (patch) | |
tree | d6b27e572019da11d812f2305f579766652ce3d8 /driver | |
parent | 444da7ffa991216f67f0bf8974f92cebf20a429e (diff) |
Fix for GCC 10 activating stricter check for extern variables / structs
From Kevin Brace
edb46574d4686c59e80569ba236d537097dcdd0e in xf86-video-openchrome git
fixes clang 11 build
mortimer@ had the same diff ok fcambus@
Diffstat (limited to 'driver')
-rw-r--r-- | driver/xf86-video-openchrome/src/via_driver.h | 4 | ||||
-rw-r--r-- | driver/xf86-video-openchrome/src/via_sii164.h | 2 | ||||
-rw-r--r-- | driver/xf86-video-openchrome/src/via_vt1632.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/driver/xf86-video-openchrome/src/via_driver.h b/driver/xf86-video-openchrome/src/via_driver.h index 80b9977a3..adb9043d1 100644 --- a/driver/xf86-video-openchrome/src/via_driver.h +++ b/driver/xf86-video-openchrome/src/via_driver.h @@ -358,8 +358,8 @@ typedef struct /* In via_display.c. */ -const xf86CrtcFuncsRec iga1_crtc_funcs; -const xf86CrtcFuncsRec iga2_crtc_funcs; +extern const xf86CrtcFuncsRec iga1_crtc_funcs; +extern const xf86CrtcFuncsRec iga2_crtc_funcs; /* In via_exa.c. */ Bool viaInitExa(ScreenPtr pScreen); diff --git a/driver/xf86-video-openchrome/src/via_sii164.h b/driver/xf86-video-openchrome/src/via_sii164.h index 1a402aa78..250ac75fd 100644 --- a/driver/xf86-video-openchrome/src/via_sii164.h +++ b/driver/xf86-video-openchrome/src/via_sii164.h @@ -51,7 +51,7 @@ typedef struct _viaSiI164 { } viaSiI164Rec, *viaSiI164RecPtr; -const xf86OutputFuncsRec via_sii164_funcs; +extern const xf86OutputFuncsRec via_sii164_funcs; Bool viaSiI164Probe(ScrnInfoPtr pScrn, I2CBusPtr pI2CBus); void viaSiI164Init(ScrnInfoPtr pScrn); diff --git a/driver/xf86-video-openchrome/src/via_vt1632.h b/driver/xf86-video-openchrome/src/via_vt1632.h index 3b9a02f36..cb3fa3690 100644 --- a/driver/xf86-video-openchrome/src/via_vt1632.h +++ b/driver/xf86-video-openchrome/src/via_vt1632.h @@ -49,7 +49,7 @@ typedef struct _VIAVT1632 { } viaVT1632Rec, *viaVT1632RecPtr; -const xf86OutputFuncsRec via_vt1632_funcs; +extern const xf86OutputFuncsRec via_vt1632_funcs; Bool viaVT1632Probe(ScrnInfoPtr pScrn, I2CBusPtr pI2CBus); void viaVT1632Init(ScrnInfoPtr pScrn); |