From 2a6d3a108ae04bfd24da0d3f9f144b80ae4a5299 Mon Sep 17 00:00:00 2001 From: Gregory Wells Date: Sun, 3 Aug 2025 15:29:28 -0400 Subject: [PATCH] fix function validators warnings --- .../function_loader/loader/function_loader.h | 12 ++++++------ .../function_loader/src/instance_functions.c | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/projects/validation_layers/function_loader/loader/function_loader.h b/projects/validation_layers/function_loader/loader/function_loader.h index 30771c2..c2e1e45 100644 --- a/projects/validation_layers/function_loader/loader/function_loader.h +++ b/projects/validation_layers/function_loader/loader/function_loader.h @@ -4,13 +4,13 @@ #include "loader/src/gryphn_command_functions.h" typedef struct gryphnInstanceFunctionLayers gryphnInstanceFunctionLayers; -gryphnInstanceFunctionLayers checkerLoadInstanceFunctions(); +gryphnInstanceFunctionLayers checkerLoadInstanceFunctions(void); -gnInstanceFunctions loadFunctionLoaderInstanceFunctions(); -gnDeviceFunctions loadFunctionLoaderDeviceFunctions(); -gnCommandFunctions loadFunctionLoaderCommandFunctions(); +gnInstanceFunctions loadFunctionLoaderInstanceFunctions(void); +gnDeviceFunctions loadFunctionLoaderDeviceFunctions(void); +gnCommandFunctions loadFunctionLoaderCommandFunctions(void); #include "extensions/synchronization/loader/sync_functions.h" #include "extensions/queues/queues_functions.h" -gnSyncExtFunctions loadFunctionLoaderSyncExtFunctions(); -gnQueueExtFunctions loadFunctionLoaderQueueExtFunctions(); +gnSyncExtFunctions loadFunctionLoaderSyncExtFunctions(void); +gnQueueExtFunctions loadFunctionLoaderQueueExtFunctions(void); diff --git a/projects/validation_layers/function_loader/src/instance_functions.c b/projects/validation_layers/function_loader/src/instance_functions.c index 9f24cde..f4862e7 100644 --- a/projects/validation_layers/function_loader/src/instance_functions.c +++ b/projects/validation_layers/function_loader/src/instance_functions.c @@ -55,5 +55,5 @@ void checkDestroyWindowSurface(gnWindowSurfaceHandle windowSurface) { CHECK_VOID_FUNCTION(windowSurface->instance, _gnDestroyWindowSurface, instanceFunctions, windowSurface); } gnSurfaceDetails checkGetSurfaceDetails(gnWindowSurfaceHandle windowSurface, gnPhysicalDevice device) { - CHECK_RETURNED_FUNCTION(windowSurface->instance, _gnGetSurfaceDetails, instanceFunctions, (gnSurfaceDetails){}, windowSurface, device); + CHECK_RETURNED_FUNCTION(windowSurface->instance, _gnGetSurfaceDetails, instanceFunctions, (gnSurfaceDetails){ .formatCount = 0 }, windowSurface, device); }