mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 23:12:32 +00:00
a1034afba8
Backport a patch from upstream U-Boot to fix the compile with host GCC 10. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
34 lines
941 B
Diff
34 lines
941 B
Diff
--- a/cmd/version.c
|
|
+++ b/cmd/version.c
|
|
@@ -18,7 +18,7 @@ static int do_version(cmd_tbl_t *cmdtp,
|
|
{
|
|
char buf[DISPLAY_OPTIONS_BANNER_LENGTH];
|
|
|
|
- printf(display_options_get_banner(false, buf, sizeof(buf)));
|
|
+ printf("%s",display_options_get_banner(false, buf, sizeof(buf)));
|
|
#ifdef CC_VERSION_STRING
|
|
puts(CC_VERSION_STRING "\n");
|
|
#endif
|
|
--- a/drivers/pinctrl/pinctrl-uclass.c
|
|
+++ b/drivers/pinctrl/pinctrl-uclass.c
|
|
@@ -368,7 +368,7 @@ int pinctrl_get_pin_name(struct udevice
|
|
if (!ops->get_pin_name)
|
|
return -ENOSYS;
|
|
|
|
- snprintf(buf, size, ops->get_pin_name(dev, selector));
|
|
+ snprintf(buf, size, "%s", ops->get_pin_name(dev, selector));
|
|
|
|
return 0;
|
|
}
|
|
--- a/lib/efi_loader/efi_variable.c
|
|
+++ b/lib/efi_loader/efi_variable.c
|
|
@@ -522,7 +522,7 @@ efi_status_t EFIAPI efi_set_variable(u16
|
|
|
|
if (old_size)
|
|
/* APPEND_WRITE */
|
|
- s += sprintf(s, old_val);
|
|
+ s += sprintf(s, "%s", old_val);
|
|
else
|
|
s += sprintf(s, "(blob)");
|
|
|