mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
e2392729f3
Building Samba on CentOS 7 with GCC version 4.8.5 results in the following error: [2725/3398] Compiling libcli/echo/tests/echo.c ../../lib/smbconf/pysmbconf.c: In function 'py_from_smbconf_service': ../../lib/smbconf/pysmbconf.c:72:2: error: 'for' loop initial declarations are only allowed in C99 mode for (uint32_t i = 0; i < svc->num_params; i++) { ^ ../../lib/smbconf/pysmbconf.c:72:2: note: use option -std=c99 or -std=gnu99 to compile your code ../../lib/smbconf/pysmbconf.c: In function 'obj_share_names': ../../lib/smbconf/pysmbconf.c:181:2: error: 'for' loop initial declarations are only allowed in C99 mode for (uint32_t i = 0; i < num_shares; i++) { ^ ../../lib/smbconf/pysmbconf.c: In function 'obj_get_config': ../../lib/smbconf/pysmbconf.c:267:2: error: 'for' loop initial declarations are only allowed in C99 mode for (uint32_t i = 0; i < num_shares; i++) { ^ Therefore declare variables right at the start aligning to default C90 standard available with GCC version on CentOS 7. Signed-off-by: Anoop C S <anoopcs@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Mon Apr 25 13:23:18 UTC 2022 on sn-devel-184 |
||
---|---|---|
.. | ||
pysmbconf.c | ||
smbconf_private.h | ||
smbconf_txt.c | ||
smbconf_txt.h | ||
smbconf_util.c | ||
smbconf.c | ||
smbconf.h | ||
wscript_build |