GNU bug report logs - #22900
new snapshot available: gzip-1.6.42-d6d4

Previous Next

Package: gzip;

Reported by: Jim Meyering <jim <at> meyering.net>

Date: Fri, 4 Mar 2016 02:19:01 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Assaf Gordon <assafgordon <at> gmail.com>, Jim Meyering <jim <at> meyering.net>
Cc: 22900 <at> debbugs.gnu.org
Subject: bug#22900: new snapshot available: gzip-1.6.42-d6d4
Date: Sun, 6 Mar 2016 16:50:41 -0800
[Message part 1 (text/plain, inline)]
Assaf Gordon wrote:

> the following occur on Mac OS X 10.10.4 (and perhaps others, didn't check):
> ===
>    CC       error.o
> error.c:386:12: error: data argument not used by format string [-Werror,-Wformat-extra-args]
>             file_name, line_number);
>             ^
> ...
>    CC       memrchr.o
> memrchr.c:71:18: error: cast from 'const unsigned char *' to 'const longword *' (aka 'const unsigned long *')
>        increases required alignment from 1 to 8 [-Werror,-Wcast-align]
>    longword_ptr = (const longword *) char_ptr;
>                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~

The above are longstanding Clang false alarms, not easily worked around as far 
as I know. We can safely ignore them.

> ===
>    CC       gzip.o
> gzip.c:1770:20: error: adding 'int' to a string does not append to the string [-Werror,-Wstring-plus-int]
>                     + 4 * tm->tm_mon),
>                     ^~~~~~~~~~~~~~~~
> gzip.c:1770:20: note: use array indexing to silence this warning
>                     + 4 * tm->tm_mon),
>                     ^

Thanks, I reproduced that with clang on Fedora 23 and worked around it by 
installing the attached patch.
[0001-gzip-pacify-clang.patch (text/x-diff, attachment)]

This bug report was last modified 9 years and 65 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.