From 7af813d48a55a14401df51870feddfaa418397e1 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Sun, 2 Feb 2020 18:31:26 +0000 Subject: [PATCH] glx: use anonymous namespace to avoid -Wodr issues when building with LTO enabled Signed-off-by: Eric Engestrom Reviewed-by: Adam Jackson Tested-by: Marge Bot Part-of: --- .../query_renderer_implementation_unittest.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/glx/tests/query_renderer_implementation_unittest.cpp b/src/glx/tests/query_renderer_implementation_unittest.cpp index cf5fe16b398..c4bc170ed55 100644 --- a/src/glx/tests/query_renderer_implementation_unittest.cpp +++ b/src/glx/tests/query_renderer_implementation_unittest.cpp @@ -32,12 +32,14 @@ #include "GL/internal/dri_interface.h" #include "dri2_priv.h" -struct attribute_test_vector { - const char *glx_string; - const char *dri_string; - int glx_attribute; - int dri_attribute; -}; +namespace { + struct attribute_test_vector { + const char *glx_string; + const char *dri_string; + int glx_attribute; + int dri_attribute; + }; +} #define E(g, d) { # g, # d, g, d } -- 2.30.2