The branch, master has been updated
       via  a2dfaa194fb build: clang 21 re-enable -Wunititialized-const-pointer
       via  3790dcb59d5 build: Allow developer builds with clang 21
      from  8e65cc9777b vfs: Remove unused SMB_VFS_GETWD()

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit a2dfaa194fbdd89c957b0b4d47b1927e02c66e7f
Author: Gary Lockyer <[email protected]>
Date:   Mon Mar 2 13:32:23 2026 +1300

    build: clang 21 re-enable -Wunititialized-const-pointer
    
    [4102/5009] Compiling source4/torture/rpc/spoolss_notify.c
      ../../source4/torture/rpc/spoolss.c:3984:48: error: variable 'data' is
           uninitialized when passed as a const pointer argument here
           [-Werror,-Wuninitialized-const-pointer]
        3984CHECK_NEEDED_SIZE_LEVEL(spoolss_PrinterData, &data, type, needed, 
1);
    
    Signed-off-by: Gary Lockyer <[email protected]>
    Reviewed-by: Anoop C S <[email protected]>
    
    Autobuild-User(master): Anoop C S <[email protected]>
    Autobuild-Date(master): Tue Mar  3 05:55:25 UTC 2026 on atb-devel-224

commit 3790dcb59d5380b6af164777d8c43585b746807c
Author: Gary Lockyer <[email protected]>
Date:   Mon Mar 2 12:53:19 2026 +1300

    build: Allow developer builds with clang 21
    
    Disable clang warnings to allow samba to be compiled with clang 21.
    
    Subsequent commits will fix the offending code.
    
    Signed-off-by: Gary Lockyer <[email protected]>
    Reviewed-by: Anoop C S <[email protected]>

-----------------------------------------------------------------------

Summary of changes:
 source4/torture/rpc/spoolss.c               | 4 ++--
 third_party/heimdal_build/wscript_configure | 3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c
index e9aebcf5d03..f8c71cb6db3 100644
--- a/source4/torture/rpc/spoolss.c
+++ b/source4/torture/rpc/spoolss.c
@@ -3954,7 +3954,7 @@ static bool test_GetPrinterData_checktype(struct 
torture_context *tctx,
        struct spoolss_GetPrinterData r;
        uint32_t needed;
        enum winreg_Type type;
-       union spoolss_PrinterData data;
+       union spoolss_PrinterData data = {};
 
        r.in.handle = handle;
        r.in.value_name = value_name;
@@ -4024,7 +4024,7 @@ static bool test_GetPrinterDataEx_checktype(struct 
torture_context *tctx,
        struct spoolss_GetPrinterDataEx r;
        enum winreg_Type type;
        uint32_t needed;
-       union spoolss_PrinterData data;
+       union spoolss_PrinterData data = {};
        struct dcerpc_binding_handle *b = p->binding_handle;
 
        r.in.handle = handle;
diff --git a/third_party/heimdal_build/wscript_configure 
b/third_party/heimdal_build/wscript_configure
index 4ab8d5034a4..7eb0d128813 100644
--- a/third_party/heimdal_build/wscript_configure
+++ b/third_party/heimdal_build/wscript_configure
@@ -76,6 +76,9 @@ if conf.env['WITH_KERNEL_KEYRING'] is not False:
                       critical=require_keyutils)
 
 heimdal_no_error_flags = ['-Wno-error=cast-qual',
+                          '-Wno-error=uninitialized-const-pointer',
+                          '-Wno-error=format-nonliteral',
+                          '-Wno-error=sometimes-uninitialized',
                           '-Wno-error=discarded-qualifiers',
                           '-Wno-error=old-style-definition',
                           '-Wno-error=unused-result',


-- 
Samba Shared Repository

Reply via email to