Commit 435d41d5 authored by David Seifert's avatar David Seifert Committed by Matt Turner
Browse files

Fix building with `-fno-common`

* GCC 10 will switch the default to `-fno-common`.
  https://gcc.gnu.org/PR85678

Bug: https://bugs.gentoo.org/705880

Signed-off-by: Matt Turner's avatarMatt Turner <mattst88@gmail.com>
parent 83826075
......@@ -72,7 +72,7 @@ typedef struct DMXConfigCmdStruct {
DMXConfigList *xinputs;
} DMXConfigCmd, *DMXConfigCmdPtr;
DMXConfigEntryPtr dmxConfigEntry;
extern DMXConfigEntryPtr dmxConfigEntry;
static DMXConfigCmd dmxConfigCmd;
static int dmxDisplaysFromCommandLine;
......
......@@ -65,7 +65,7 @@ extern FILE *yyin;
#define DMX_CANVAS_WIDTH 400
#define DMX_CANVAS_HEIGHT 500
DMXConfigEntryPtr dmxConfigEntry;
extern DMXConfigEntryPtr dmxConfigEntry;
static DMXConfigVirtualPtr dmxConfigCurrent, dmxConfigNewVirtual;
static DMXConfigDisplayPtr dmxConfigCurrentDisplay, dmxConfigNewDisplay;
static int dmxConfigGrabbed, dmxConfigGrabbedFine;
......
......@@ -47,8 +47,6 @@
#include "extinit.h"
#include "glx_extinit.h"
int noGlxExtension;
/*
** Forward declarations.
*/
......
......@@ -43,7 +43,7 @@
#ifdef XF86VIDMODE
#include <X11/extensions/xf86vmproto.h>
_X_EXPORT Bool noXFree86VidModeExtension;
extern _X_EXPORT Bool noXFree86VidModeExtension;
#endif
void
......
......@@ -33,7 +33,7 @@
#include "tests-common.h"
ScreenInfo screenInfo;
extern ScreenInfo screenInfo;
static void
dix_version_compare(void)
......
......@@ -37,7 +37,7 @@
#include "protocol-common.h"
ClientRec client_window;
extern ClientRec client_window;
static ClientRec client_request;
static void
......
......@@ -45,6 +45,8 @@ static ClientRec server_client;
void *global_userdata;
void (*reply_handler) (ClientPtr client, int len, char *data, void *userdata);
int enable_GrabButton_wrap = 1;
int enable_XISetEventMask_wrap = 1;
......
......@@ -99,7 +99,7 @@ extern void *global_userdata;
* The reply handler called from WriteToClient. Set this handler if you need
* to check the reply values.
*/
void (*reply_handler) (ClientPtr client, int len, char *data, void *userdata);
extern void (*reply_handler) (ClientPtr client, int len, char *data, void *userdata);
/**
* The default screen used for the windows. Initialized by init_simple().
......
......@@ -46,7 +46,7 @@ static struct {
int win;
} test_data;
ClientRec client_window;
extern ClientRec client_window;
static ClientRec client_request;
static void
......
......@@ -60,7 +60,7 @@ static struct {
int mask_len;
} test_data;
ClientRec client_window;
extern ClientRec client_window;
/* AddResource is called from XISetSEventMask, we don't need this */
Bool
......
......@@ -41,7 +41,7 @@
#include "protocol-common.h"
ClientRec client_window;
extern ClientRec client_window;
static ClientRec client_request;
#define N_MODS 7
......
......@@ -54,7 +54,7 @@ struct test_data {
int num_devices_in_reply;
};
ClientRec client_window;
extern ClientRec client_window;
static void reply_XIQueryDevice_data(ClientPtr client, int len, char *data,
void *closure);
......
......@@ -41,7 +41,7 @@
#include "protocol-common.h"
ClientRec client_window;
extern ClientRec client_window;
static ClientRec client_request;
static void reply_XIQueryPointer_data(ClientPtr client, int len,
char *data, void *closure);
......
......@@ -58,7 +58,7 @@ struct test_data {
int minor_expected;
};
ClientRec client_window;
extern ClientRec client_window;
static void
reply_XIQueryVersion(ClientPtr client, int len, char *data, void *closure)
......
......@@ -62,7 +62,7 @@
static unsigned char *data[4096 * 20]; /* the request data buffer */
ClientRec client_window;
extern ClientRec client_window;
int
__real_XISetEventMask(DeviceIntPtr dev, WindowPtr win, ClientPtr client,
......
......@@ -48,7 +48,7 @@
#include "protocol-common.h"
ClientRec client_window;
extern ClientRec client_window;
static ClientRec client_request;
static void
......
......@@ -44,7 +44,7 @@
static int expected_x = SPRITE_X;
static int expected_y = SPRITE_Y;
ClientRec client_window;
extern ClientRec client_window;
/**
* This function overrides the one in the screen rec.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment