]> git.baikalelectronics.ru Git - uboot.git/commitdiff
libavb: Fix a warning with clang-15
authorTom Rini <trini@konsulko.com>
Mon, 27 Feb 2023 22:08:35 +0000 (17:08 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 22 Mar 2023 19:22:48 +0000 (15:22 -0400)
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 <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/libavb/avb_cmdline.c

index cb54e658c4878101075f334372672fdddab14c55..a58ce6c48c0102ab5c50ff5fee41a4f92f6ef96a 100644 (file)
@@ -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));
 }