Mesa (master): glx: use anonymous namespace to avoid -Wodr issues when building with LTO enabled
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Apr 4 18:04:09 UTC 2020
Module: Mesa
Branch: master
Commit: 7af813d48a55a14401df51870feddfaa418397e1
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7af813d48a55a14401df51870feddfaa418397e1
Author: Eric Engestrom <eric at engestrom.ch>
Date: Sun Feb 2 18:31:26 2020 +0000
glx: use anonymous namespace to avoid -Wodr issues when building with LTO enabled
Signed-off-by: Eric Engestrom <eric at engestrom.ch>
Reviewed-by: Adam Jackson <ajax at redhat.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2597>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2597>
---
src/glx/tests/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 }
More information about the mesa-commit
mailing list