C considered dangerous
C considered dangerous
Posted Aug 30, 2018 12:26 UTC (Thu) by adobriyan (subscriber, #30858)In reply to: C considered dangerous by marcH
Parent article: C considered dangerous
> do the compiler options of the kernel still reject C99 variable declarations and if yes why?
Unfortunately, yes:
error: 'for' loop initial declarations are only allowed in C99 or C11 mode
Kernel is -std=gnu89.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/...