Ticket #2823 (closed defect: fixed)

Opened 19 months ago

Last modified 3 months ago

warning: ISO C90 does not support...

Reported by: christian.gmeiner@… Owned by: mutt-dev
Priority: minor Milestone: 1.6
Component: build Version: 1.5.14
Keywords: Cc:

Description (last modified by brendan) (diff)

/home/austriancoder/development/freewrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-gcc -DPKGDATADIR=\"/usr/share/mutt\" -DSYSCONFDIR=\"/etc\" -DBINDIR=\"/usr/bin\" -DMUTTLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H=1 -I. -I. -I.  -I. -I. -I./imap  -Iintl -DNDEBUG -isystem /home/austriancoder/development/freewrt/staging_dir_mipsel/include -isystem /home/austriancoder/development/freewrt/staging_dir_mipsel/usr/include -I./intl -I/home/austriancoder/development/freewrt/build_mipsel/w-mutt-1.5.14-1/mutt-1.5.14/.  -Wall -pedantic -Os -fno-ident -fwrapv -fhonour-copts -c copy.c
copy.c: In function `mutt_copy_header':
copy.c:456: warning: ISO C90 does not support the `ll' printf length modifier
copy.c: In function `_mutt_copy_message':
copy.c:565: warning: ISO C90 does not support the `ll' printf length modifier
copy.c: In function `copy_delete_attach':
copy.c:808: warning: ISO C90 does not support the `ll' printf length modifier
>How-To-Repeat:
>Fix:
Unknown

Change History

Changed 19 months ago by Vincent Lefevre <vincent@…>

On 2007-03-06 09:04:48 +0100, christian.gmeiner@gmail.com wrote:
> copy.c: In function `mutt_copy_header':
> copy.c:456: warning: ISO C90 does not support the `ll' printf length mo=
difier
> copy.c: In function `_mutt_copy_message':
> copy.c:565: warning: ISO C90 does not support the `ll' printf length mo=
difier
> copy.c: In function `copy_delete_attach':
> copy.c:808: warning: ISO C90 does not support the `ll' printf length mo=
difier

This is not a problem as most compilers and/or libc support them,
even ones not written for C99. And if this size has been selected
by the configure script, then it should work.

If you want Mutt to get rid of these warnings (particularly) by using
some compiler options, it may be a bit dangerous, as it is easy to
break things. I know that...

--=20
Vincent Lef=E8vre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)

Changed 18 months ago by brendan

  • description modified (diff)
  • milestone set to 1.6

Changed 18 months ago by brendan

  • component changed from mutt to build

Changed 3 months ago by pdmef

Can we close this ticket because to changeset [d612ef757ee9]? This should work in the vast majority of cases as the format specifier comes from the system itself.

Changed 3 months ago by brendan

  • status changed from new to closed
  • resolution set to fixed

Ok, closing.

Changed 3 months ago by agriffis

It would be nice if we could just disable that warning; that way we could enable -Werror. It seems that -Wno-long-long kills this warning....

Changed 3 months ago by brendan

  • status changed from closed to reopened
  • resolution fixed deleted

Still getting warnings on OS X, xcode 3. Either -Wno-long-long or dropping -pedantic seems like a good idea to me. I'll try the former.

Changed 3 months ago by brendan

  • status changed from reopened to closed
  • resolution set to fixed

(In [45ce2903b9e9]) Disable GCC long long warnings with -pedantic. Closes #2823. Thanks to Aron Griffis for the suggestion.

Note: See TracTickets for help on using tickets.