From 407a27946128ee79c16ebb14104824459af9f424 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Thu, 4 Apr 2019 18:05:36 +0200 Subject: libpayload: Align main() data types One of many steps to compile with -Wconversion, as unsigned int and int aren't the same thing. BUG=b:111443775 BRANCH=none TEST=make junit.xml shows fewer warnings with -Wconversion enabled Change-Id: I9673ca70da32a1e5117b27fa89167e03379af9c1 Signed-off-by: Patrick Georgi Reviewed-on: https://review.coreboot.org/c/coreboot/+/32183 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Rudolph --- payloads/libpayload/arch/arm/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'payloads/libpayload/arch/arm') diff --git a/payloads/libpayload/arch/arm/main.c b/payloads/libpayload/arch/arm/main.c index cb2d242679..52c6162921 100644 --- a/payloads/libpayload/arch/arm/main.c +++ b/payloads/libpayload/arch/arm/main.c @@ -30,7 +30,7 @@ #include #include -unsigned int main_argc; /**< The argc value to pass to main() */ +int main_argc; /**< The argc value to pass to main() */ /** The argv value to pass to main() */ char *main_argv[MAX_ARGC_COUNT]; -- cgit v1.2.3