From b44eb50f2d125420c2c78d45e112bc3c2ee1472c Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 11 May 2020 13:06:56 -0700 Subject: [PATCH] anv/tests: Silence unused parameter warnings in main MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Part-of: --- src/intel/vulkan/tests/block_pool_grow_first.c | 2 +- src/intel/vulkan/tests/block_pool_no_free.c | 2 +- src/intel/vulkan/tests/state_pool.c | 2 +- src/intel/vulkan/tests/state_pool_free_list_only.c | 2 +- src/intel/vulkan/tests/state_pool_no_free.c | 2 +- src/intel/vulkan/tests/state_pool_padding.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/intel/vulkan/tests/block_pool_grow_first.c b/src/intel/vulkan/tests/block_pool_grow_first.c index 073587dc7f7..7c66157f265 100644 --- a/src/intel/vulkan/tests/block_pool_grow_first.c +++ b/src/intel/vulkan/tests/block_pool_grow_first.c @@ -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, diff --git a/src/intel/vulkan/tests/block_pool_no_free.c b/src/intel/vulkan/tests/block_pool_no_free.c index e0961ab3b9e..9b5b77f20d1 100644 --- a/src/intel/vulkan/tests/block_pool_no_free.c +++ b/src/intel/vulkan/tests/block_pool_no_free.c @@ -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(); diff --git a/src/intel/vulkan/tests/state_pool.c b/src/intel/vulkan/tests/state_pool.c index 23209d62541..0c9f5d35009 100644 --- a/src/intel/vulkan/tests/state_pool.c +++ b/src/intel/vulkan/tests/state_pool.c @@ -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 = { diff --git a/src/intel/vulkan/tests/state_pool_free_list_only.c b/src/intel/vulkan/tests/state_pool_free_list_only.c index 9e0d2fa751f..fd471a77845 100644 --- a/src/intel/vulkan/tests/state_pool_free_list_only.c +++ b/src/intel/vulkan/tests/state_pool_free_list_only.c @@ -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 = { diff --git a/src/intel/vulkan/tests/state_pool_no_free.c b/src/intel/vulkan/tests/state_pool_no_free.c index 680d8ba83ba..87136403d67 100644 --- a/src/intel/vulkan/tests/state_pool_no_free.c +++ b/src/intel/vulkan/tests/state_pool_no_free.c @@ -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(); diff --git a/src/intel/vulkan/tests/state_pool_padding.c b/src/intel/vulkan/tests/state_pool_padding.c index 76884d0b77f..182b370dd49 100644 --- a/src/intel/vulkan/tests/state_pool_padding.c +++ b/src/intel/vulkan/tests/state_pool_padding.c @@ -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, -- 2.30.2