This commit rectifies the issue of using 'f()' instead of 'f(void)', which are not equivalent.
Affected functions: bgenv_open_oldest, bgenv_open_latest Resolves the compiler warning: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] Signed-off-by: Michael Adler <[email protected]> --- env/env_api_fat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/env/env_api_fat.c b/env/env_api_fat.c index 503dedf..0f4f474 100644 --- a/env/env_api_fat.c +++ b/env/env_api_fat.c @@ -191,7 +191,7 @@ BGENV *bgenv_open_by_index(uint32_t index) return handle; } -BGENV *bgenv_open_oldest() +BGENV *bgenv_open_oldest(void) { uint32_t minrev = 0xFFFFFFFF; uint32_t min_idx = 0; @@ -205,7 +205,7 @@ BGENV *bgenv_open_oldest() return bgenv_open_by_index(min_idx); } -BGENV *bgenv_open_latest() +BGENV *bgenv_open_latest(void) { uint32_t maxrev = 0; uint32_t max_idx = 0; -- 2.41.0 -- You received this message because you are subscribed to the Google Groups "EFI Boot Guard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/efibootguard-dev/20230726084024.40124-5-michael.adler%40siemens.com.
