]> git.ipfire.org Git - thirdparty/samba.git/commit
Fix clang 20 shadows variable in global scope warning
authorGary Lockyer <gary@catalyst.net.nz>
Mon, 19 May 2025 02:35:43 +0000 (14:35 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Wed, 28 May 2025 23:04:38 +0000 (23:04 +0000)
commiteb76e600c4346a92528c701c76a5300cbbd0bf74
treea5c19619ed7e7ed5fb31131cacd8a73cf7d2905f
parent8cd91721a94c02f42edbeefc184789313610ccb1
Fix clang 20 shadows variable in global scope warning

Fixes:

 [4822/4916] Compiling source3/torture/torture.c
 ../../source3/torture/torture.c:685:6: error: declaration shadows a variable in the global scope [-Werror,-Wshadow]
  685 |         int timezone = smb1cli_conn_server_time_zone(cli->conn);
      |             ^
 /usr/include/time.h:234:17: note: previous declaration is here
  234 | extern long int timezone;
      |                 ^
 1 error generated.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Anoop C S <anoopcs@samba.org>
buildtools/wafsamba/samba_autoconf.py
source3/torture/torture.c