vk/meta: Fix -Wstrict-prototypes
authorChad Versace <chad.versace@intel.com>
Wed, 7 Oct 2015 16:09:37 +0000 (09:09 -0700)
committerChad Versace <chad.versace@intel.com>
Wed, 7 Oct 2015 16:10:25 +0000 (09:10 -0700)
In C, functions with no arguments require a void argument.
build_nir_clear_fragment_shader() lacked that.

Fixes:
  anv_meta.c:70:1: warning: function declaration isn't a prototype
  [-Wstrict-prototypes]

src/vulkan/anv_meta.c

index a0b7070ebfeba2350ebc0bce20691fbebd969f3b..c0e4112f363620890093238b7758ff48a6505d81 100644 (file)
@@ -67,7 +67,7 @@ build_nir_vertex_shader(bool attr_flat)
 }
 
 static nir_shader *
-build_nir_clear_fragment_shader()
+build_nir_clear_fragment_shader(void)
 {
    nir_builder b;