From: Tom Rini Date: Mon, 27 Feb 2023 22:08:35 +0000 (-0500) Subject: libavb: Fix a warning with clang-15 X-Git-Tag: v2025.01-rc5-pxa1908~1023^2~25^2~7 X-Git-Url: http://git.dujemihanovic.xyz/%22http:/www.sics.se/static/git-favicon.png?a=commitdiff_plain;h=fbfcb614e05890d30264c2b965fd28bfd4d8ed27;p=u-boot.git libavb: Fix a warning with clang-15 With clang-15 we now will get warnings such as: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] And it is easy enough to address this warning here, as we aren't concerned with re-syncing with an upstream. Signed-off-by: Tom Rini Reviewed-by: Simon Glass --- diff --git a/lib/libavb/avb_cmdline.c b/lib/libavb/avb_cmdline.c index cb54e658c4..a58ce6c48c 100644 --- a/lib/libavb/avb_cmdline.c +++ b/lib/libavb/avb_cmdline.c @@ -394,7 +394,7 @@ out: return ret; } -AvbCmdlineSubstList* avb_new_cmdline_subst_list() { +AvbCmdlineSubstList* avb_new_cmdline_subst_list(void) { return (AvbCmdlineSubstList*)avb_calloc(sizeof(AvbCmdlineSubstList)); }