mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 06:50:11 +01:00
anv/tests: Silence unused parameter warnings in main
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>
This commit is contained in:
parent
f4638cfdad
commit
b44eb50f2d
6 changed files with 6 additions and 6 deletions
|
|
@ -24,7 +24,7 @@
|
||||||
#include "anv_private.h"
|
#include "anv_private.h"
|
||||||
#include "test_common.h"
|
#include "test_common.h"
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(void)
|
||||||
{
|
{
|
||||||
struct anv_physical_device physical_device = {
|
struct anv_physical_device physical_device = {
|
||||||
.use_softpin = true,
|
.use_softpin = true,
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,7 @@ static void run_test()
|
||||||
pthread_mutex_destroy(&device.mutex);
|
pthread_mutex_destroy(&device.mutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(void)
|
||||||
{
|
{
|
||||||
for (unsigned i = 0; i < NUM_RUNS; i++)
|
for (unsigned i = 0; i < NUM_RUNS; i++)
|
||||||
run_test();
|
run_test();
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
#include "state_pool_test_helper.h"
|
#include "state_pool_test_helper.h"
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(void)
|
||||||
{
|
{
|
||||||
struct anv_physical_device physical_device = { };
|
struct anv_physical_device physical_device = { };
|
||||||
struct anv_device device = {
|
struct anv_device device = {
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
#include "state_pool_test_helper.h"
|
#include "state_pool_test_helper.h"
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(void)
|
||||||
{
|
{
|
||||||
struct anv_physical_device physical_device = { };
|
struct anv_physical_device physical_device = { };
|
||||||
struct anv_device device = {
|
struct anv_device device = {
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,7 @@ static void run_test()
|
||||||
pthread_mutex_destroy(&device.mutex);
|
pthread_mutex_destroy(&device.mutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(void)
|
||||||
{
|
{
|
||||||
for (unsigned i = 0; i < NUM_RUNS; i++)
|
for (unsigned i = 0; i < NUM_RUNS; i++)
|
||||||
run_test();
|
run_test();
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
#include "anv_private.h"
|
#include "anv_private.h"
|
||||||
#include "test_common.h"
|
#include "test_common.h"
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(void)
|
||||||
{
|
{
|
||||||
struct anv_physical_device physical_device = {
|
struct anv_physical_device physical_device = {
|
||||||
.use_softpin = true,
|
.use_softpin = true,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue