[Piglit] [PATCH] arb_separate_shader_object: Silence _GNU_SOURCE redefined warning.

Vinson Lee vlee at freedesktop.org
Thu Dec 5 17:25:55 PST 2013


Fixes GCC warning.

ValidateProgramPipeline.c:23:0: warning: "_GNU_SOURCE" redefined [enabled by default]
 #define _GNU_SOURCE
 ^
<command-line>:0:0: note: this is the location of the previous definition

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/spec/arb_separate_shader_objects/ValidateProgramPipeline.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/spec/arb_separate_shader_objects/ValidateProgramPipeline.c b/tests/spec/arb_separate_shader_objects/ValidateProgramPipeline.c
index 2145d00..3354e29 100644
--- a/tests/spec/arb_separate_shader_objects/ValidateProgramPipeline.c
+++ b/tests/spec/arb_separate_shader_objects/ValidateProgramPipeline.c
@@ -20,7 +20,9 @@
  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  * IN THE SOFTWARE.
  */
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include "piglit-util-gl-common.h"
 
 PIGLIT_GL_TEST_CONFIG_BEGIN
-- 
1.8.3.2



More information about the Piglit mailing list