This project is mirrored from https://gitlab.com/samba-team/samba.git. Pull mirroring updated .
  1. 27 Apr, 2022 1 commit
  2. 26 Apr, 2022 24 commits
  3. 25 Apr, 2022 1 commit
    • Anoop C S's avatar
      libsmbconf: Avoid initial declaration inside 'for' loop · e2392729
      Anoop C S authored and Andreas Schneider's avatar Andreas Schneider committed
      
      
      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's avatarAnoop C S <anoopcs@samba.org>
      Reviewed-by: Andreas Schneider's avatarAndreas 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
      e2392729
  4. 21 Apr, 2022 4 commits
  5. 13 Apr, 2022 10 commits