gallium: Make sure functions have proper prototypes and remove unused variable.
authorMichel Dänzer <michel@tungstengraphics.com>
Thu, 8 May 2008 12:26:23 +0000 (13:26 +0100)
committerMichel Dänzer <michel@tungstengraphics.com>
Thu, 8 May 2008 12:26:23 +0000 (13:26 +0100)
src/gallium/auxiliary/pipebuffer/pb_validate.c
src/gallium/auxiliary/pipebuffer/pb_validate.h

index a0a0965a46269dd419e2a3148256f482b04ad83b..b32fe2252ec02f7ce040b7470cee4bf908b43faa 100644 (file)
@@ -42,6 +42,7 @@
 
 #include "pb_buffer.h"
 #include "pb_buffer_fenced.h"
+#include "pb_validate.h"
 
 
 struct pb_validate
@@ -107,7 +108,6 @@ pb_validate_fence_cb(void *key, void *value, void *_data)
 {
    struct pb_buffer *buf = (struct pb_buffer *)key;
    struct pb_validate_fence_data *data = (struct pb_validate_fence_data *)_data;
-   struct pb_validate *vl = data->vl;
    struct pipe_fence_handle *fence = data->fence;
    
    assert(value == key);
index b0f05d3119d8bf28b77830ecba566c87872bc1e4..3db1d5330b912af8ab5b137641730c69c439b24a 100644 (file)
@@ -78,7 +78,7 @@ pb_validate_fence(struct pb_validate *vl,
                   struct pipe_fence_handle *fence);
 
 struct pb_validate *
-pb_validate_create();
+pb_validate_create(void);
 
 void
 pb_validate_destroy(struct pb_validate *vl);