glx: use anonymous namespace to avoid -Wodr issues when building with LTO enabled
authorEric Engestrom <eric@engestrom.ch>
Sun, 2 Feb 2020 18:31:26 +0000 (18:31 +0000)
committerMarge Bot <eric+marge@anholt.net>
Sat, 4 Apr 2020 17:46:05 +0000 (17:46 +0000)
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Adam Jackson <ajax@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

index cf5fe16b39891b7a40afebb49872f5aea9f6709c..c4bc170ed554fe1ec739e38fb15a9d9d13cacf40 100644 (file)
 #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 }