summaryrefslogtreecommitdiff
path: root/tools/null_state_gen/intel_null_state_gen.c
diff options
context:
space:
mode:
authorThomas Wood <thomas.wood@intel.com>2015-08-26 12:05:13 +0100
committerThomas Wood <thomas.wood@intel.com>2015-09-08 16:14:45 +0100
commitb9d27f03c7cdfdb66734b5164916a501dd787036 (patch)
treedb6cb166c224b6b1625c4001030921fac48d032f /tools/null_state_gen/intel_null_state_gen.c
parent4ee6709e3bd98eb52f4c4c22f58fecf9750f26eb (diff)
tools/null_state_gen: fix various compiler warnings
Add the debug and warning flags to cflags and fix the resulting issues. Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'tools/null_state_gen/intel_null_state_gen.c')
-rw-r--r--tools/null_state_gen/intel_null_state_gen.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/tools/null_state_gen/intel_null_state_gen.c b/tools/null_state_gen/intel_null_state_gen.c
index 8024ac3d..7d5887eb 100644
--- a/tools/null_state_gen/intel_null_state_gen.c
+++ b/tools/null_state_gen/intel_null_state_gen.c
@@ -30,13 +30,9 @@
#include <errno.h>
#include <assert.h>
+#include "intel_renderstate.h"
#include "intel_batchbuffer.h"
-extern int gen6_setup_null_render_state(struct intel_batchbuffer *batch);
-extern int gen7_setup_null_render_state(struct intel_batchbuffer *batch);
-extern int gen8_setup_null_render_state(struct intel_batchbuffer *batch);
-extern int gen9_setup_null_render_state(struct intel_batchbuffer *batch);
-
static int debug = 0;
static void print_usage(char *s)
@@ -115,7 +111,7 @@ static int do_generate(int gen)
{
struct intel_batchbuffer *batch;
int ret = -EINVAL;
- int (*null_state_gen)(struct intel_batchbuffer *batch) = NULL;
+ void (*null_state_gen)(struct intel_batchbuffer *batch) = NULL;
batch = intel_batchbuffer_create();
if (batch == NULL)