diff options
author | Manoj Gupta <manojgupta@google.com> | 2022-04-27 12:07:27 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-04-28 03:14:07 +0000 |
commit | cba197e626d47fc9f31babffdee614cddd4eebb3 (patch) | |
tree | 88a3e7b56a52f821f08e7e23feb43f99c8bc2104 | |
parent | 48532e571bf79f32af972f6096681c11674c3825 (diff) | |
download | vboot-cba197e626d47fc9f31babffdee614cddd4eebb3.tar.gz |
futility: Fix -Wstrict-prototypes warning
ToT clang is complaining about missing 'void' in
function prototype.
futility/updater.c:1235:42:
error: a function declaration without a prototype is
deprecated in all versions of C [-Werror,-Wstrict-prototypes]
struct updater_config *updater_new_config()
^
void
BUG=b:230345382
TEST=CQ, llvm tot test
BRANCH=none
Signed-off-by: Manoj Gupta <manojgupta@google.com>
Change-Id: Ic68b71a7413e9396904dd319e0febce2eecb0df3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3610725
Reviewed-by: Julius Werner <jwerner@chromium.org>
Commit-Queue: Julius Werner <jwerner@chromium.org>
Tested-by: Manoj Gupta <manojgupta@chromium.org>
Commit-Queue: Manoj Gupta <manojgupta@chromium.org>
Auto-Submit: Manoj Gupta <manojgupta@chromium.org>
-rw-r--r-- | futility/updater.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/futility/updater.c b/futility/updater.c index ae51534c..b8bb48b0 100644 --- a/futility/updater.c +++ b/futility/updater.c @@ -1232,7 +1232,7 @@ enum updater_error_codes update_firmware(struct updater_config *cfg) * Allocates and initializes a updater_config object with default values. * Returns the newly allocated object, or NULL on error. */ -struct updater_config *updater_new_config() +struct updater_config *updater_new_config(void) { struct updater_config *cfg = (struct updater_config *)calloc( 1, sizeof(struct updater_config)); |