GNU bug report logs -
#77815
[PATCH 1/1] initialize env_argc & env_argv
Previous Next
To reply to this bug, email your comments to 77815 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gzip <at> gnu.org
:
bug#77815
; Package
gzip
.
(Tue, 15 Apr 2025 04:44:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Christian Hesse <mail <at> eworm.de>
:
New bug report received and forwarded. Copy sent to
bug-gzip <at> gnu.org
.
(Tue, 15 Apr 2025 04:44:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
... as the compiler complains:
gzip.c: In function 'main':
gzip.c:465:24: error: 'env_argc' may be used uninitialized [-Werror=maybe-uninitialized]
465 | optc = getopt_long (env_argc, env_argv, shortopts, longopts,
| ^
gzip.c:413:9: note: 'env_argc' was declared here
413 | int env_argc;
| ^
lto1: all warnings being treated as errors
---
gzip.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gzip.c b/gzip.c
index 913fafe..65aa1ed 100644
--- a/gzip.c
+++ b/gzip.c
@@ -410,8 +410,8 @@ int main (int argc, char **argv)
int file_count; /* number of files to process */
size_t proglen; /* length of program_name */
char **argv_copy;
- int env_argc;
- char **env_argv;
+ int env_argc = 0;
+ char **env_argv = NULL;
EXPAND(argc, argv); /* wild card expansion if necessary */
Information forwarded
to
bug-gzip <at> gnu.org
:
bug#77815
; Package
gzip
.
(Tue, 15 Apr 2025 09:32:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 77815 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Dear gzip maintainers,
just found out this is related to link time optimization. If I disable LTO it
builds as-is (git master and 1.14), as soon as I enable LTO my patches is
required for a successful build. Thanks!
--
Best regards,
Chris
[Message part 2 (application/pgp-signature, inline)]
This bug report was last modified 8 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.