SHA256
1
0
forked from pool/open-isns
open-isns/Quiet-a-commpiler-warning.patch
Lee Duncan 797524c240 Accepting request 1002211 from home:lee_duncan:branches:Base:System
- Update to version 0.102:
  * Preparing for version v0.102
  * meson: just specify subdir for header-file install.
  * build: only specify version in one place
  * Fix two compiler warnings in slp.c
  * meson: update README
  * meson: small option usage cleanup
  * meson: several updates based on review
  * meson: fix error building shared lib with version
  * meson: convert some args to 'features'
  * meson: update README with meson info
  * Add a decprecation warning to configure script.
  * meson: Add ability to disable static library build
  * meson builds now working
  * git: ignore all shared library files
  * build: Remove these two files, no longer used
  * Add a package config file for libisns.a
  * isnsd: socket: Make sure to create IPv6 socket default
  * isnsadm: Fix unparse command line options "-V" and "-r"
  * Typo: s/overried/override/
  * Removed bash-specific function definitions.
  Also, added patch to quiet compiler (soon upstream):
  * Quiet-a-commpiler-warning.patch
  This changes the SPEC file to use the new meson build system,
  supported in open-isns starting with version 0.102, instead of
  autoconf/make.
  Changes in the code:
  * no longer deliver isnsetup script or man page (development only)
  * now deliver a package config file for the library
  * now deliver both the static library and a shared library

OBS-URL: https://build.opensuse.org/request/show/1002211
OBS-URL: https://build.opensuse.org/package/show/Base:System/open-isns?expand=0&rev=39
2022-09-08 22:52:14 +00:00

35 lines
1.3 KiB
Diff

From 62e2c4d8dd270eea0bfaa933e87182c8a1c18aac Mon Sep 17 00:00:00 2001
From: Lee Duncan <lduncan@suse.com>
Date: Thu, 8 Sep 2022 12:00:31 -0700
Subject: [PATCH] Quiet a commpiler warning.
Build error looked like:
[ 33s] gcc -Wall -Wextra -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -ffat-lto-objects -g -I. -Iinclude -I. -I./include -flto=auto -ffat-lto-objects -o tests/pauw4 tests/pauw4.o -L. -lisns -Wl,--as-needed -lcrypto
[ 33s] attrs.c: In function 'isns_attr_decode':
[ 33s] attrs.c:807:9: warning: 'len' may be used uninitialized [-Wmaybe-uninitialized]
[ 33s] 807 | isns_error("Error decoding attribute, tag=0x%04x, len=%u\n",
[ 33s] | ^
[ 33s] attrs.c:780:30: note: 'len' declared here
[ 33s] 780 | uint32_t tag, len;
---
attrs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/attrs.c b/attrs.c
index 44d9675358b9..a12c22235481 100644
--- a/attrs.c
+++ b/attrs.c
@@ -777,7 +777,7 @@ isns_attr_decode(buf_t *bp, isns_attr_t **result)
{
isns_attr_t *attr = NULL;
isns_value_t *value;
- uint32_t tag, len;
+ uint32_t tag, len = 0;
if (!buf_get32(bp, &tag)
|| !buf_get32(bp, &len))
--
2.35.3