Moving the kernel to modern C
Moving the kernel to modern C
Posted Feb 28, 2022 11:48 UTC (Mon) by ianmcc (guest, #88379)In reply to: Moving the kernel to modern C by wtarreau
Parent article: Moving the kernel to modern C
main.cpp:11:6: error: redeclaration of ‘char i’
11 | char i = (k & 1) ? 'O' : 'E';
| ^
main.cpp:9:10: note: ‘int i’ previously declared here
9 | for (int i = 1; i < j; i++) {
| ^
