summaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2020-02-02 18:31:26 +0000
committerMarge Bot <[email protected]>2020-04-04 17:46:05 +0000
commit7af813d48a55a14401df51870feddfaa418397e1 (patch)
tree2d6ebfa2f778c8797ae90e960c7d1494b3883c4a /src/glx
parent17d783b2ed4f8b18d8577c39897d6c81e1f88876 (diff)
glx: use anonymous namespace to avoid -Wodr issues when building with LTO enabled
Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Adam Jackson <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2597> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2597>
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/tests/query_renderer_implementation_unittest.cpp14
1 files 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 }