public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/3190] -Wformat-y2k doesn't belong to -Wall - it's hard to avoid
       [not found] <20010614225600.3190.proski@gnu.org>
@ 2003-10-31  0:43 ` thekingant at users dot sourceforge dot net
  2003-11-08 22:42 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: thekingant at users dot sourceforge dot net @ 2003-10-31  0:43 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3190


thekingant at users dot sourceforge dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thekingant at users dot
                   |                            |sourceforge dot net


------- Additional Comments From thekingant at users dot sourceforge dot net  2003-10-31 00:04 -------
FYI, bug 8714 is very similar to this one.

>From what I can tell, here's what this boils down to...
-I want to show the user a date in "the preferred date representation for the
current locale"
-gcc warns me that the year might only show up as 2 digits
-I don't care at all, I'm just giving the user what they wanted

If you truely feel that 2 digit years should never be displayed when the year is
greater than 2 digits then the correct solution is to change the locale, not
scare me into changing my code.

I occasionally do some work for the Gaim project.  It's an instant messaging
program with about 97,275 source lines of code (number generated using David A.
Wheeler's 'SLOCCount'.).  On most platforms, when compiling with -Wall, the ONLY
warning is this one about only showing the last 2 digits of the year.  Sure, I
could add a workaround to not show the warning, but doesn't that seem a bit
ridiculous?

My point is this: I'm trying to show a date to the user how they prefer to see
it, why does gcc want me to change that?


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c/3190] -Wformat-y2k doesn't belong to -Wall - it's hard to avoid
       [not found] <20010614225600.3190.proski@gnu.org>
  2003-10-31  0:43 ` [Bug c/3190] -Wformat-y2k doesn't belong to -Wall - it's hard to avoid thekingant at users dot sourceforge dot net
@ 2003-11-08 22:42 ` cvs-commit at gcc dot gnu dot org
  2003-11-08 22:58 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-11-08 22:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-11-08 22:42 -------
Subject: Bug 3190

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	jsm28@gcc.gnu.org	2003-11-08 22:42:00

Modified files:
	gcc            : ChangeLog c-format.c 
	gcc/doc        : invoke.texi 
	gcc/testsuite  : ChangeLog 
	gcc/testsuite/gcc.dg/format: c90-strftime-1.c c90-strftime-2.c 
	                             c99-strftime-1.c ext-3.c no-y2k-1.c 

Log message:
	PR c/3190
	PR c/8714
	* c-format.c (set_Wformat): Do not enable -Wformat-y2k by default.
	* invoke.texi: Update.
	
	testsuite:
	PR c/3190
	PR c/8714
	* gcc.dg/format/c90-strftime-1.c, gcc.dg/format/c90-strftime-2.c,
	gcc.dg/format/c99-strftime-1.c, gcc.dg/format/ext3.c,
	gcc.dg/format/no-y2k-1.c: Update.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.1705&r2=2.1706
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-format.c.diff?cvsroot=gcc&r1=1.49&r2=1.50
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/doc/invoke.texi.diff?cvsroot=gcc&r1=1.357&r2=1.358
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3176&r2=1.3177
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/format/c90-strftime-1.c.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/format/c90-strftime-2.c.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/format/c99-strftime-1.c.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/format/ext-3.c.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/format/no-y2k-1.c.diff?cvsroot=gcc&r1=1.2&r2=1.3



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3190


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c/3190] -Wformat-y2k doesn't belong to -Wall - it's hard to avoid
       [not found] <20010614225600.3190.proski@gnu.org>
  2003-10-31  0:43 ` [Bug c/3190] -Wformat-y2k doesn't belong to -Wall - it's hard to avoid thekingant at users dot sourceforge dot net
  2003-11-08 22:42 ` cvs-commit at gcc dot gnu dot org
@ 2003-11-08 22:58 ` pinskia at gcc dot gnu dot org
  2003-11-09  4:32 ` thekingant at users dot sourceforge dot net
  2005-08-07  0:16 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-08 22:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-11-08 22:58 -------
Fixed for 3.4.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |3.4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3190


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c/3190] -Wformat-y2k doesn't belong to -Wall - it's hard to avoid
       [not found] <20010614225600.3190.proski@gnu.org>
                   ` (2 preceding siblings ...)
  2003-11-08 22:58 ` pinskia at gcc dot gnu dot org
@ 2003-11-09  4:32 ` thekingant at users dot sourceforge dot net
  2005-08-07  0:16 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 5+ messages in thread
From: thekingant at users dot sourceforge dot net @ 2003-11-09  4:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From thekingant at users dot sourceforge dot net  2003-11-09 04:32 -------
Awesome, you guy(s) rock.  This is why I love open source :-)  Thanks a bunch!

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3190


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c/3190] -Wformat-y2k doesn't belong to -Wall - it's hard to avoid
       [not found] <20010614225600.3190.proski@gnu.org>
                   ` (3 preceding siblings ...)
  2003-11-09  4:32 ` thekingant at users dot sourceforge dot net
@ 2005-08-07  0:16 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-07  0:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-07 00:16 -------
*** Bug 23267 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cmattair at pdq dot net


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3190


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-08-07  0:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20010614225600.3190.proski@gnu.org>
2003-10-31  0:43 ` [Bug c/3190] -Wformat-y2k doesn't belong to -Wall - it's hard to avoid thekingant at users dot sourceforge dot net
2003-11-08 22:42 ` cvs-commit at gcc dot gnu dot org
2003-11-08 22:58 ` pinskia at gcc dot gnu dot org
2003-11-09  4:32 ` thekingant at users dot sourceforge dot net
2005-08-07  0:16 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).