Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package aws-c-common for openSUSE:Factory 
checked in at 2026-11-24 12:42:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/aws-c-common (Old)
 and      /work/SRC/openSUSE:Factory/.aws-c-common.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "aws-c-common"

Tue Nov 24 12:42:07 2026 rev:40 rq:1400230 version:1.0.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/aws-c-common/aws-c-common.changes        
2026-11-21 12:32:21.886308478 +0100
+++ /work/SRC/openSUSE:Factory/.aws-c-common.new.1340718/aws-c-common.changes   
2026-11-24 12:47:38.213361423 +0100
@@ -1,0 +2,11 @@
+Mon Nov 23 14:28:15 UTC 2026 - John Paul Adrian Glaubitz 
<[email protected]>
+
+- Update to 1.0.5
+  - Updating macOS runner by @rakshil14-2 in (#1308)
+  - Fix LTO build failure caused by signature mismatch in AVX2
+    base64 encoder by @sfod in (#1309)
+  - Helper script update by @TingDaoK in (#1310)
+  - Windows build failure by @TingDaoK in (#1311)
+- Update GitHub issue reference for s390x
+
+-------------------------------------------------------------------

Old:
----
  v1.0.5.tar.gz

New:
----
  v1.0.6.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ aws-c-common.spec ++++++
--- /var/tmp/diff_new_pack.lkoL90/_old  2026-11-24 12:47:39.152401220 +0100
+++ /var/tmp/diff_new_pack.lkoL90/_new  2026-11-24 12:47:39.156401390 +0100
@@ -20,7 +20,7 @@
 %define library_pkg 1_0
 %define library_soversion 1
 Name:           aws-c-common
-Version:        1.0.5
+Version:        1.0.6
 Release:        0
 Summary:        Core C99 package for AWS SDK for C
 License:        Apache-2.0
@@ -30,7 +30,7 @@
 BuildRequires:  cmake
 BuildRequires:  fdupes
 BuildRequires:  ninja
-# https://github.com/awslabs/aws-c-common/issues/1175
+# Testsuite hangs on s390x: https://github.com/awslabs/aws-c-common/issues/1314
 ExcludeArch:    s390x
 
 %description

++++++ v1.0.5.tar.gz -> v1.0.6.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aws-c-common-1.0.5/.github/workflows/ci.yml 
new/aws-c-common-1.0.6/.github/workflows/ci.yml
--- old/aws-c-common-1.0.5/.github/workflows/ci.yml     2026-10-27 
21:50:05.000000000 +0100
+++ new/aws-c-common-1.0.6/.github/workflows/ci.yml     2026-11-21 
02:09:49.000000000 +0100
@@ -211,7 +211,11 @@
         python .\aws-c-common\scripts\appverifier_ctest.py --build_directory 
.\aws-c-common\build\aws-c-common
 
   macos-x64:
-    runs-on: macos-14-large # latest
+    runs-on: ${{ matrix.runner }}
+    strategy:
+      fail-fast: false
+      matrix:
+        runner: [macos-15-large, macos-latest-large]
     steps:
     - uses: aws-actions/configure-aws-credentials@v6
       with:
@@ -224,7 +228,11 @@
         ./builder build -p ${{ env.PACKAGE_NAME }}
 
   macos:
-    runs-on: macos-14 # latest
+    runs-on: ${{ matrix.runner }}
+    strategy:
+      fail-fast: false
+      matrix:
+        runner: [macos-15, macos-latest]
     steps:
     - uses: aws-actions/configure-aws-credentials@v6
       with:
@@ -237,7 +245,11 @@
         ./builder build -p ${{ env.PACKAGE_NAME }}
 
   macos-no-cpu-extensions:
-    runs-on: macos-14 # latest
+    runs-on: ${{ matrix.runner }}
+    strategy:
+      fail-fast: false
+      matrix:
+        runner: [macos-15, macos-latest]
     steps:
     - uses: aws-actions/configure-aws-credentials@v6
       with:
@@ -337,7 +349,11 @@
         python builder.pyz build -p ${{ env.PACKAGE_NAME }} --config Debug
 
   macos-debug:
-    runs-on: macos-14 # latest
+    runs-on: ${{ matrix.runner }}
+    strategy:
+      fail-fast: false
+      matrix:
+        runner: [macos-15, macos-latest]
     steps:
     - uses: aws-actions/configure-aws-credentials@v6
       with:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aws-c-common-1.0.5/VERSION 
new/aws-c-common-1.0.6/VERSION
--- old/aws-c-common-1.0.5/VERSION      2026-10-27 21:50:05.000000000 +0100
+++ new/aws-c-common-1.0.6/VERSION      2026-11-21 02:09:49.000000000 +0100
@@ -1 +1 @@
-1.0.5
+1.0.6
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/aws-c-common-1.0.5/include/aws/common/private/hash_table_impl.h 
new/aws-c-common-1.0.6/include/aws/common/private/hash_table_impl.h
--- old/aws-c-common-1.0.5/include/aws/common/private/hash_table_impl.h 
2026-10-27 21:50:05.000000000 +0100
+++ new/aws-c-common-1.0.6/include/aws/common/private/hash_table_impl.h 
2026-11-21 02:09:49.000000000 +0100
@@ -18,8 +18,8 @@
 /* Using a flexible array member is the C99 compliant way to have the 
hash_table_entries
  * immediately follow the struct.
  *
- * MSVC doesn't know this for some reason so we need to use a pragma to make
- * it happy.
+ * MSVC treats a flexible array member as a nonstandard extension (C4200), so
+ * that warning is disabled for this definition.
  */
 #ifdef _MSC_VER
 #    pragma warning(push)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aws-c-common-1.0.5/scripts/latest_submodules.py 
new/aws-c-common-1.0.6/scripts/latest_submodules.py
--- old/aws-c-common-1.0.5/scripts/latest_submodules.py 2026-10-27 
21:50:05.000000000 +0100
+++ new/aws-c-common-1.0.6/scripts/latest_submodules.py 2026-11-21 
02:09:49.000000000 +0100
@@ -1,4 +1,31 @@
 #!/usr/bin/env python3
+"""
+Update every git submodule of the current repo to its latest release.
+
+Run from the root of a repo that has a .gitmodules file (e.g. aws-crt-java):
+
+    python3 crt/aws-c-common/scripts/latest_submodules.py --dry-run
+    python3 crt/aws-c-common/scripts/latest_submodules.py [SUBMODULE ...]
+
+--dry-run prints what would change without checking anything out.
+SUBMODULE names (e.g. aws-c-common) are left where they are.
+
+By default, a submodule moves to its highest vX.Y.Z tag. For aws-lc and s2n,
+which the CRT team doesn't release, a submodule already past the latest tag
+is left alone.
+
+A submodule with `branch` set in .gitmodules moves to the latest commit on
+that branch instead. For example, aws-crt-java's aws-lc tracks the AWS-LC
+FIPS branch:
+
+    [submodule "aws-lc"]
+        path = crt/aws-lc
+        url = https://github.com/awslabs/aws-lc.git
+        branch = fips-2024-09-27
+
+The script only updates the submodule checkouts. Review and commit the
+changes yourself.
+"""
 import argparse
 import os
 import os.path
@@ -21,6 +48,8 @@
         'path': 'crt/aws-c-common',
         'url': 'https://github.com/awslabs/aws-c-common.git',
     }
+
+    'branch' is also present if the submodule sets it in .gitmodules.
     """
     if not os.path.exists('.gitmodules'):
         sys.exit(f'No .gitmodules found in {os.getcwd()}')
@@ -29,6 +58,7 @@
     start_pattern = re.compile(r'\[submodule')
     path_pattern = re.compile(r'\s+path = (\S+)')
     url_pattern = re.compile(r'\s+url = (\S+)')
+    branch_pattern = re.compile(r'\s+branch = (\S+)')
 
     current = None
     with open('.gitmodules', 'r') as f:
@@ -50,6 +80,11 @@
                 current['url'] = m.group(1)
                 continue
 
+            m = branch_pattern.match(line)
+            if m:
+                current['branch'] = m.group(1)
+                continue
+
     return sorted(submodules, key=lambda x: x['name'])
 
 
@@ -65,22 +100,37 @@
     }
     """
     git_output = run('git', 'ls-remote', '--tags').stdout
-    tags = []
+    tags = {}
     for line in git_output.splitlines():
         # line looks like: "e18f041a0c8d17189f2eae2a32f16e0a7a3f0f1c 
refs/tags/v0.5.18"
+        # Annotated tags also have a peeled line pointing at the actual commit:
+        #                  "bf9994952db54440754f1eff9b5d41582e71ee52 
refs/tags/v0.5.18^{}"
         match = re.match(
-            r'([a-f0-9]+)\s+refs/tags/(' + prefix + 
r'([0-9]+)\.([0-9]+)\.([0-9]+))$', line)
+            r'([a-f0-9]+)\s+refs/tags/(' + prefix + 
r'([0-9]+)\.([0-9]+)\.([0-9]+))(\^\{\})?$', line)
         if not match:
             # skip malformed release tags
             continue
-        tags.append({
+        version = match.group(2)
+        peeled = match.group(6) is not None
+        # For annotated tags the unpeeled SHA is the tag object, not the 
commit,
+        # so the peeled entry takes precedence.
+        if version in tags and not peeled:
+            continue
+        tags[version] = {
             'commit': match.group(1),
-            'version': match.group(2),
+            'version': version,
             'num_tuple': (int(match.group(3)), int(match.group(4)), 
int(match.group(5))),
-        })
+        }
 
     # sort highest version first
-    return sorted(tags, reverse=True, key=lambda tag: tag['num_tuple'])
+    return sorted(tags.values(), reverse=True, key=lambda tag: 
tag['num_tuple'])
+
+
+def get_branch_head(branch):
+    git_output = run('git', 'ls-remote', 'origin', 
f'refs/heads/{branch}').stdout
+    if not git_output:
+        sys.exit(f'Branch {branch} not found on origin in {os.getcwd()}')
+    return git_output.split()[0]
 
 
 def get_current_commit():
@@ -118,12 +168,27 @@
 
         os.chdir(os.path.join(root_path, submodule['path']))
 
-        version_prefix = 'v'
-        # aws-crt-java uses FIPS releases of aws-lc
-        if name == 'aws-lc' and 'aws-crt-java' in root_path:
-            version_prefix = 'AWS-LC-FIPS-'
+        # A submodule with `branch` set in .gitmodules tracks the latest commit
+        # on that branch instead of the latest release tag
+        # (e.g. aws-crt-java's aws-lc tracks fips-2024-09-27).
+        branch = submodule.get('branch')
+        if branch:
+            current_commit = get_current_commit()
+            if name in args.ignore:
+                print(f"{name:<{name_pad}} {current_commit} (ignored)")
+                continue
+            head = get_branch_head(branch)
+            if head == current_commit:
+                print(f"{name:<{name_pad}} {branch}@{current_commit} ✓")
+            else:
+                print(f"{name:<{name_pad}} {current_commit} -> 
{branch}@{head}")
+                if not args.dry_run:
+                    run('git', 'fetch', 'origin', branch)
+                    run('git', 'checkout', head)
+                    run('git', 'submodule', 'update')
+            continue
 
-        tags = get_release_tags(version_prefix)
+        tags = get_release_tags()
         current_commit = get_current_commit()
         current_tag = get_tag_for_commit(tags, current_commit)
         sync_from = current_tag['version'] if current_tag else current_commit
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aws-c-common-1.0.5/scripts/remote_sync.py 
new/aws-c-common-1.0.6/scripts/remote_sync.py
--- old/aws-c-common-1.0.5/scripts/remote_sync.py       1970-01-01 
01:00:00.000000000 +0100
+++ new/aws-c-common-1.0.6/scripts/remote_sync.py       2026-11-21 
02:09:49.000000000 +0100
@@ -0,0 +1,321 @@
+#!/usr/bin/env python3
+"""
+Remote Sync Script
+
+This script pulls a branch from a remote repository and pushes it to a new 
branch
+called 'external-pr' in the original repository.
+
+Helper for CRT developers to accept pull requests from forks.
+
+Usage:
+    python remote_sync.py <remote_repo_url>
+
+Example:
+    python remote_sync.py 
https://github.com/WillChilds-Klein/aws-crt-java/tree/main
+"""
+
+import sys
+import subprocess
+import re
+import argparse
+from urllib.parse import urlparse
+import os
+
+
+class RemoteSyncError(Exception):
+    """Custom exception for remote sync operations"""
+    pass
+
+
+class RemoteSync:
+    def __init__(self, remote_url, target_branch="external-pr", verbose=False):
+        self.remote_url = remote_url
+        self.target_branch = target_branch
+        self.verbose = verbose
+        self.temp_remote_name = "temp_remote_sync"
+
+        # Parse the remote URL
+        self.repo_url, self.branch_name = self._parse_remote_url(remote_url)
+
+    def _parse_remote_url(self, url):
+        """
+        Parse the remote URL to extract repository URL and branch name.
+
+        Supports formats like:
+        - https://github.com/user/repo/tree/branch
+        - https://github.com/user/repo (defaults to main)
+        - [email protected]:user/repo.git
+        """
+        # Handle GitHub tree URLs
+        tree_match = re.match(
+            r'(https://github\.com/[^/]+/[^/]+)/tree/(.+)', url)
+        if tree_match:
+            repo_url = tree_match.group(1) + '.git'
+            branch_name = tree_match.group(2)
+            return repo_url, branch_name
+
+        # Handle direct repository URLs
+        if url.endswith('.git'):
+            return url, 'main'
+        else:
+            parsed_url = urlparse(url)
+            hostname = (parsed_url.hostname or "").lower()
+            if hostname == 'github.com':
+                return url + '.git', 'main'
+
+        raise RemoteSyncError(f"Unable to parse remote URL: {url}")
+
+    def _run_command(self, cmd, check=True, capture_output=True):
+        """Run a shell command and return the result"""
+        if self.verbose:
+            print(f"Running: {' '.join(cmd)}")
+
+        try:
+            result = subprocess.run(
+                cmd,
+                check=check,
+                capture_output=capture_output,
+                text=True,
+                cwd=os.getcwd()
+            )
+            return result
+        except subprocess.CalledProcessError as e:
+            error_msg = f"Command failed: {' '.join(cmd)}"
+            if e.stderr:
+                error_msg += f"\nError: {e.stderr}"
+            raise RemoteSyncError(error_msg)
+
+    def _check_git_repo(self):
+        """Check if we're in a git repository"""
+        try:
+            self._run_command(['git', 'rev-parse', '--git-dir'])
+            return True
+        except RemoteSyncError:
+            return False
+
+    def _remote_exists(self, remote_name):
+        """Check if a remote already exists"""
+        try:
+            result = self._run_command(
+                ['git', 'remote', 'get-url', remote_name])
+            return True
+        except RemoteSyncError:
+            return False
+
+    def _branch_exists(self, branch_name):
+        """Check if a local branch exists"""
+        try:
+            self._run_command(['git', 'rev-parse', '--verify', branch_name])
+            return True
+        except RemoteSyncError:
+            return False
+
+    def _get_current_branch(self):
+        """Get the current branch name"""
+        try:
+            result = self._run_command(['git', 'branch', '--show-current'])
+            return result.stdout.strip()
+        except RemoteSyncError:
+            return None
+
+    def add_remote(self):
+        """Add the temporary remote repository"""
+        print(f"Adding remote repository: {self.repo_url}")
+
+        # Remove existing remote if it exists
+        if self._remote_exists(self.temp_remote_name):
+            print(f"Removing existing remote: {self.temp_remote_name}")
+            self._run_command(
+                ['git', 'remote', 'remove', self.temp_remote_name])
+
+        # Add the new remote
+        self._run_command(
+            ['git', 'remote', 'add', self.temp_remote_name, self.repo_url])
+        print(f"✓ Remote '{self.temp_remote_name}' added successfully")
+
+    def fetch_remote_branch(self):
+        """Fetch the specified branch from the remote repository"""
+        print(
+            f"Fetching branch '{self.branch_name}' from remote repository...")
+
+        # Always do a general fetch to avoid ambiguous refname issues
+        self._run_command(['git', 'fetch', self.temp_remote_name])
+
+        # Verify the branch exists
+        try:
+            self._run_command([
+                'git', 'rev-parse', '--verify',
+                f'{self.temp_remote_name}/{self.branch_name}'
+            ])
+            print(f"✓ Branch '{self.branch_name}' fetched successfully")
+        except RemoteSyncError:
+            raise RemoteSyncError(
+                f"Branch '{self.branch_name}' not found in remote repository"
+            )
+
+    def create_sync_branch(self):
+        """Create or update the external-pr branch"""
+        print(f"Creating/updating branch '{self.target_branch}'...")
+
+        # Store current branch to return to it later
+        current_branch = self._get_current_branch()
+
+        try:
+            # If the target branch already exists, delete it
+            if self._branch_exists(self.target_branch):
+                print(
+                    f"Branch '{self.target_branch}' already exists, updating 
it...")
+                # Switch to a different branch if we're on the target branch
+                if current_branch == self.target_branch:
+                    # Try to switch to main or master
+                    for default_branch in ['main', 'master']:
+                        if self._branch_exists(default_branch):
+                            self._run_command(
+                                ['git', 'checkout', default_branch])
+                            current_branch = default_branch
+                            break
+
+                # Delete the existing branch
+                self._run_command(['git', 'branch', '-D', self.target_branch])
+
+            # Create new branch from the fetched remote branch
+            # Use the full SHA to avoid ambiguous refname issues
+            remote_sha = self._run_command([
+                'git', 'rev-parse', 
f'{self.temp_remote_name}/{self.branch_name}'
+            ]).stdout.strip()
+
+            self._run_command([
+                'git', 'checkout', '-b', self.target_branch, remote_sha
+            ])
+            print(f"✓ Branch '{self.target_branch}' created successfully")
+
+            # Return to original branch
+            if current_branch and current_branch != self.target_branch:
+                self._run_command(['git', 'checkout', current_branch])
+                print(f"✓ Returned to original branch: {current_branch}")
+
+        except RemoteSyncError as e:
+            # Try to return to original branch if something went wrong
+            if current_branch and current_branch != self.target_branch:
+                try:
+                    self._run_command(['git', 'checkout', current_branch])
+                except:
+                    pass
+            raise e
+
+    def push_sync_branch(self):
+        """Push the external-pr branch to origin"""
+        print(f"Pushing branch '{self.target_branch}' to origin...")
+
+        try:
+            # Push the branch to origin
+            self._run_command(['git', 'push', 'origin', self.target_branch])
+            print(f"✓ Branch '{self.target_branch}' pushed successfully")
+        except RemoteSyncError:
+            # If push fails, try force push (in case branch exists on remote)
+            print("Regular push failed, trying force push...")
+            self._run_command(
+                ['git', 'push', '--force', 'origin', self.target_branch])
+            print(f"✓ Branch '{self.target_branch}' force-pushed successfully")
+
+    def cleanup(self):
+        """Remove the temporary remote"""
+        print("Cleaning up temporary remote...")
+        try:
+            self._run_command(
+                ['git', 'remote', 'remove', self.temp_remote_name])
+            print(f"✓ Temporary remote '{self.temp_remote_name}' removed")
+        except RemoteSyncError:
+            print(
+                f"⚠ Could not remove temporary remote 
'{self.temp_remote_name}'")
+
+    def sync(self):
+        """Perform the complete sync operation"""
+        print(f"Starting remote sync operation...")
+        print(f"Remote URL: {self.remote_url}")
+        print(f"Repository: {self.repo_url}")
+        print(f"Branch: {self.branch_name}")
+        print(f"Target branch: {self.target_branch}")
+        print("-" * 50)
+
+        # Verify we're in a git repository
+        if not self._check_git_repo():
+            raise RemoteSyncError("Not in a git repository")
+
+        try:
+            # Step 1: Add remote repository
+            self.add_remote()
+
+            # Step 2: Fetch the remote branch
+            self.fetch_remote_branch()
+
+            # Step 3: Create/update the sync branch
+            self.create_sync_branch()
+
+            # Step 4: Push to origin
+            self.push_sync_branch()
+
+            print("-" * 50)
+            print("✓ Remote sync completed successfully!")
+            print(
+                f"✓ Branch '{self.target_branch}' now contains the latest code 
from:")
+            print(f"  {self.repo_url} (branch: {self.branch_name})")
+
+        finally:
+            # Always cleanup, even if something fails
+            self.cleanup()
+
+
+def main():
+    parser = argparse.ArgumentParser(
+        description="Pull a branch from a remote repository and push it to 
'external-pr' branch",
+        formatter_class=argparse.RawDescriptionHelpFormatter,
+        epilog="""
+Examples:
+  %(prog)s https://github.com/WillChilds-Klein/aws-crt-java/tree/main
+  %(prog)s https://github.com/user/repo/tree/feature-branch
+  %(prog)s https://github.com/user/repo.git --branch main
+  %(prog)s https://github.com/user/repo --target-branch my-sync-branch
+        """
+    )
+
+    parser.add_argument(
+        'remote_url',
+        help='Remote repository URL (supports GitHub tree URLs)'
+    )
+
+    parser.add_argument(
+        '--target-branch',
+        default='external-pr',
+        help='Name of the target branch to create (default: external-pr)'
+    )
+
+    parser.add_argument(
+        '--verbose', '-v',
+        action='store_true',
+        help='Enable verbose output'
+    )
+
+    args = parser.parse_args()
+
+    try:
+        syncer = RemoteSync(
+            remote_url=args.remote_url,
+            target_branch=args.target_branch,
+            verbose=args.verbose
+        )
+        syncer.sync()
+
+    except RemoteSyncError as e:
+        print(f"Error: {e}", file=sys.stderr)
+        sys.exit(1)
+    except KeyboardInterrupt:
+        print("\nOperation cancelled by user", file=sys.stderr)
+        sys.exit(1)
+    except Exception as e:
+        print(f"Unexpected error: {e}", file=sys.stderr)
+        sys.exit(1)
+
+
+if __name__ == '__main__':
+    main()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aws-c-common-1.0.5/source/arch/intel/encoding_avx2.c 
new/aws-c-common-1.0.6/source/arch/intel/encoding_avx2.c
--- old/aws-c-common-1.0.5/source/arch/intel/encoding_avx2.c    2026-10-27 
21:50:05.000000000 +0100
+++ new/aws-c-common-1.0.6/source/arch/intel/encoding_avx2.c    2026-11-21 
02:09:49.000000000 +0100
@@ -341,7 +341,15 @@
     return encode_chars(vec);
 }
 
-void aws_common_private_base64_encode_sse41(const uint8_t *input, uint8_t 
*output, size_t inlen) {
+void aws_common_private_base64_encode_sse41(
+    const uint8_t *input,
+    uint8_t *output,
+    size_t inlen,
+    bool url_safe_encoding) {
+    /* AVX2 implementation currently does not support URL base64. */
+    AWS_ASSERT(!url_safe_encoding);
+    (void)url_safe_encoding;
+
     __m256i instride, outstride;
 
     while (inlen >= 32) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aws-c-common-1.0.5/source/hash_table.c 
new/aws-c-common-1.0.6/source/hash_table.c
--- old/aws-c-common-1.0.5/source/hash_table.c  2026-10-27 21:50:05.000000000 
+0100
+++ new/aws-c-common-1.0.6/source/hash_table.c  2026-11-21 02:09:49.000000000 
+0100
@@ -21,6 +21,13 @@
  * macro. */
 #include <aws/common/private/lookup3.inl>
 
+/* MSVC warns (C4815) that the stack hash_table_state below has no storage for 
slots.
+ * It is a header-only template passed to s_alloc_state, which never accesses 
slots. */
+#ifdef _MSC_VER
+#    pragma warning(push)
+#    pragma warning(disable : 4815)
+#endif
+
 static void s_suppress_unused_lookup3_func_warnings(void) {
     /* We avoid making changes to lookup3 if we can avoid it, but since it has 
functions
      * we're not using, reference them somewhere to suppress the unused 
function warning.
@@ -223,6 +230,7 @@
     AWS_PRECONDITION(hash_fn != NULL);
     AWS_PRECONDITION(equals_fn != NULL);
     struct hash_table_state template;
+    AWS_ZERO_STRUCT(template);
     template.hash_fn = hash_fn;
     template.equals_fn = equals_fn;
     template.destroy_key_fn = destroy_key_fn;
@@ -1112,3 +1120,7 @@
 bool aws_hash_compare_uint64_t_eq(const void *a, const void *b) {
     return *(uint64_t *)a == *(uint64_t *)b;
 }
+
+#ifdef _MSC_VER
+#    pragma warning(pop)
+#endif

Reply via email to