Re: [PATCH] scripts: imx-usb-loader: list_imx_device_types(): move variable declaration out of for() loop

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 26, 2018 at 01:29:14PM +0200, Marc Kleine-Budde wrote:
> On older compilers this causes the following error:
> | scripts/imx/imx-usb-loader.c: In function 'list_imx_device_types':
> | scripts/imx/imx-usb-loader.c:252:2: error: 'for' loop initial declarations are only allowed in C99 mode
> |   for (int i = 0; i < ARRAY_SIZE(imx_ids); i++) {
> |   ^
> | scripts/imx/imx-usb-loader.c:252:2: note: use option -std=c99 or -std=gnu99 to compile your code
> 
> Fixes: bcc2df673cdb ("scripts: imx-usb-loader: allow use of unknown USB IDs")
> Reported-by: Niklas Reisser <Niklas.Reisser@xxxxxxxxxxxx>
> Signed-off-by: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx>
> ---
>  scripts/imx/imx-usb-loader.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Applied, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux