Module: Mesa
Branch: master
Commit: 7af813d48a55a14401df51870feddfaa418397e1
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7af813d48a55a14401df51870feddfaa418397e1

Author: Eric Engestrom <[email protected]>
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 <[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>

---

 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 }
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to