Mesa (master): r300g/tests: Include stdio.h.

Vinson Lee vlee at kemper.freedesktop.org
Fri Feb 27 05:02:10 UTC 2015


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

Author: Vinson Lee <vlee at freedesktop.org>
Date:   Thu Feb 26 21:00:15 2015 -0800

r300g/tests: Include stdio.h.

Fix build error.

  CC       compiler/tests/r300_compiler_tests-radeon_compiler_regalloc_tests.o
compiler/tests/radeon_compiler_regalloc_tests.c: In function ‘test_runner_rc_regalloc’:
compiler/tests/radeon_compiler_regalloc_tests.c:57:3: error: implicit declaration of function ‘fprintf’ [-Werror=implicit-function-declaration]
   fprintf(stderr, "Failed to load program\n");
   ^

Signed-off-by: Vinson Lee <vlee at freedesktop.org>

---

 .../drivers/r300/compiler/tests/radeon_compiler_regalloc_tests.c     |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/r300/compiler/tests/radeon_compiler_regalloc_tests.c b/src/gallium/drivers/r300/compiler/tests/radeon_compiler_regalloc_tests.c
index 5306b08..e1b6b24 100644
--- a/src/gallium/drivers/r300/compiler/tests/radeon_compiler_regalloc_tests.c
+++ b/src/gallium/drivers/r300/compiler/tests/radeon_compiler_regalloc_tests.c
@@ -23,6 +23,8 @@
  * Author: Tom Stellard <thomas.stellard at amd.com>
  */
 
+#include <stdio.h>
+
 #include "radeon_program_pair.h"
 
 #include "r300_compiler_tests.h"




More information about the mesa-commit mailing list