1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-30 03:26:23 -04:00
elinks/src/dialogs
Kalle Olavi Niemitalo 61019c3130 Debian bug 464384: fix OFF_T_FORMAT mismatches on amd64
On AMD64 apparently, off_t is long but ELinks detected SIZEOF_OFF_T == 8
and defined OFF_T_FORMAT as "lld", which expects long long and so causes
GCC to warn about a mismatching format specifier.  Because --enable-debug
adds -Werror to $CFLAGS, this warning breaks the build.  When both
SIZEOF_LONG and SIZEOF_LONG_LONG are 8, ELinks cannot know which type
it should use.

To fix this, do not attempt to find a format specifier for off_t itself.
Instead cast all printed off_t values to a new typedef off_print_T that
is large enough, and replace OFF_T_FORMAT with OFF_PRINT_FORMAT which
is suitable for off_print_T altough not necessarily for off_t.  ELinks
already had a similar scheme with time_print_T and TIME_PRINT_FORMAT.
2008-02-10 11:30:27 +02:00
..
document.c Debian bug 464384: fix OFF_T_FORMAT mismatches on amd64 2008-02-10 11:30:27 +02:00
document.h Remove empty lines in start of header files 2005-11-15 11:33:27 +01:00
download.c Bug 914: Don't let UTF-8 I/O affect internal representations. 2007-05-20 15:31:02 +03:00
download.h Remove empty lines in start of header files 2005-11-15 11:33:27 +01:00
edit.c Cast variadic arguments of getml to void *. 2007-03-11 12:41:17 +02:00
edit.h Remove empty lines in start of header files 2005-11-15 11:33:27 +01:00
exmode.c config: Reduce the interface offered to exmode. 2008-02-03 14:43:26 +02:00
exmode.h Remove empty lines in start of header files 2005-11-15 11:33:27 +01:00
info.c Make copyright info independent from translations. 2007-10-03 11:53:09 +02:00
info.h Remove empty lines in start of header files 2005-11-15 11:33:27 +01:00
Makefile path_to_top -> top_builddir 2005-10-20 04:00:35 +02:00
menu.c Strings corrections from Malcolm Parsons 2008-01-27 04:19:23 +00:00
menu.h Type-check button arguments of msg_box. 2007-03-10 23:50:56 +02:00
options.c charset_list: Map the "System" codepage to the underlying one. 2007-04-09 12:33:18 +03:00
options.h Remove empty lines in start of header files 2005-11-15 11:33:27 +01:00
progress.c Remove now useless $Id: lines. 2005-10-21 09:14:07 +02:00
progress.h Remove empty lines in start of header files 2005-11-15 11:33:27 +01:00
status.c Bug 914: Don't let UTF-8 I/O affect internal representations. 2007-05-20 15:31:02 +03:00
status.h Remove empty lines in start of header files 2005-11-15 11:33:27 +01:00