anv/tests: Silence unused parameter warnings in main
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 11 May 2020 20:06:56 +0000 (13:06 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 14 May 2020 16:47:08 +0000 (16:47 +0000)
src/intel/vulkan/tests/block_pool_no_free.c: In function ‘main’:
src/intel/vulkan/tests/block_pool_no_free.c:147:14: warning: unused parameter ‘argc’ [-Wunused-parameter]
src/intel/vulkan/tests/block_pool_no_free.c:147:27: warning: unused parameter ‘argv’ [-Wunused-parameter]

src/intel/vulkan/tests/block_pool_grow_first.c: In function ‘main’:
src/intel/vulkan/tests/block_pool_grow_first.c:27:14: warning: unused parameter ‘argc’ [-Wunused-parameter]
src/intel/vulkan/tests/block_pool_grow_first.c:27:27: warning: unused parameter ‘argv’ [-Wunused-parameter]

src/intel/vulkan/tests/state_pool.c: In function ‘main’:
src/intel/vulkan/tests/state_pool.c:36:14: warning: unused parameter ‘argc’ [-Wunused-parameter]
src/intel/vulkan/tests/state_pool.c:36:27: warning: unused parameter ‘argv’ [-Wunused-parameter]

src/intel/vulkan/tests/state_pool_padding.c: In function ‘main’:
src/intel/vulkan/tests/state_pool_padding.c:27:14: warning: unused parameter ‘argc’ [-Wunused-parameter]
src/intel/vulkan/tests/state_pool_padding.c:27:27: warning: unused parameter ‘argv’ [-Wunused-parameter]

src/intel/vulkan/tests/state_pool_no_free.c: In function ‘main’:
src/intel/vulkan/tests/state_pool_no_free.c:115:14: warning: unused parameter ‘argc’ [-Wunused-parameter]
src/intel/vulkan/tests/state_pool_no_free.c:115:27: warning: unused parameter ‘argv’ [-Wunused-parameter]

src/intel/vulkan/tests/state_pool_free_list_only.c: In function ‘main’:
src/intel/vulkan/tests/state_pool_free_list_only.c:35:14: warning: unused parameter ‘argc’ [-Wunused-parameter]
src/intel/vulkan/tests/state_pool_free_list_only.c:35:27: warning: unused parameter ‘argv’ [-Wunused-parameter]

v2: Use 'int main(void)' instead.  Suggested by Jason.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4994>

src/intel/vulkan/tests/block_pool_grow_first.c
src/intel/vulkan/tests/block_pool_no_free.c
src/intel/vulkan/tests/state_pool.c
src/intel/vulkan/tests/state_pool_free_list_only.c
src/intel/vulkan/tests/state_pool_no_free.c
src/intel/vulkan/tests/state_pool_padding.c

index 073587dc7f741cb46a898783e40d550f7ae2dc41..7c66157f265e88b9c0e8edd6d47fe76191041875 100644 (file)
@@ -24,7 +24,7 @@
 #include "anv_private.h"
 #include "test_common.h"
 
-int main(int argc, char **argv)
+int main(void)
 {
    struct anv_physical_device physical_device = {
       .use_softpin = true,
index e0961ab3b9e1d7252ba04f4c1de561abe095b3a5..9b5b77f20d16912657ac6eff6b24974da8874cd4 100644 (file)
@@ -144,7 +144,7 @@ static void run_test()
    pthread_mutex_destroy(&device.mutex);
 }
 
-int main(int argc, char **argv)
+int main(void)
 {
    for (unsigned i = 0; i < NUM_RUNS; i++)
       run_test();
index 23209d62541431f495b447a6aa0588055b88803a..0c9f5d35009247af821685018198cea3ea839385 100644 (file)
@@ -33,7 +33,7 @@
 
 #include "state_pool_test_helper.h"
 
-int main(int argc, char **argv)
+int main(void)
 {
    struct anv_physical_device physical_device = { };
    struct anv_device device = {
index 9e0d2fa751f9ddbe57eee9b73ee25cf44015a008..fd471a77845ab855237ffb69ff9f7bd0575de19e 100644 (file)
@@ -32,7 +32,7 @@
 
 #include "state_pool_test_helper.h"
 
-int main(int argc, char **argv)
+int main(void)
 {
    struct anv_physical_device physical_device = { };
    struct anv_device device = {
index 680d8ba83ba165325bf772c4f48bfe57c0dcc797..87136403d6738eae81d571a5b0faf829d4cb766e 100644 (file)
@@ -112,7 +112,7 @@ static void run_test()
    pthread_mutex_destroy(&device.mutex);
 }
 
-int main(int argc, char **argv)
+int main(void)
 {
    for (unsigned i = 0; i < NUM_RUNS; i++)
       run_test();
index 76884d0b77ff64e37be6db9df637e210f9613e89..182b370dd492ff9825e441d912c3f3307588e4f6 100644 (file)
@@ -24,7 +24,7 @@
 #include "anv_private.h"
 #include "test_common.h"
 
-int main(int argc, char **argv)
+int main(void)
 {
    struct anv_physical_device physical_device = {
       .use_softpin = true,