[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] vfprintf warnings
From: |
Theodore A. Roth |
Subject: |
Re: [avr-libc-dev] vfprintf warnings |
Date: |
Mon, 11 Nov 2002 09:42:15 -0800 (PST) |
On Mon, 11 Nov 2002, E. Weddington wrote:
:) On 11 Nov 2002 at 16:09, Joerg Wunsch wrote:
:)
:) > As E. Weddington wrote:
:) >
:) > > Since I've been giving it a shot at building avrlibc with the latest
:) > > snapshots, I've noticed that there are 4 warnings for vfprintf.c
:) > > stating that 4 variables are possibly uninitialized before use:
:) > > base, pb, width, and prec.
:) >
:) > That's OK.
:) >
:) > There's no way to tell gcc to shut up about them.
:)
:) -Wno-uninitialized
I'd rather not see this used. In most cases, you should get a warning.
What we have here are special cases which have been given proper scrutiny
and are justified. We need something like a lint comment in the code to
disable the warning, not globally turning off the warning. In any event,
there should be a comment in the code stating that it may generate a
warning, but it can safely be ignored and why. Otherwise, someone in the
future will see the warning and "fix" (like I almost did on friday).
In the future, I'd rather see us able to use -Werror, but that's not
possible right now.
Ted Roth
- [avr-libc-dev] vfprintf warnings, E. Weddington, 2002/11/08
- Re: [avr-libc-dev] vfprintf warnings, Theodore A. Roth, 2002/11/08
- Re: [avr-libc-dev] vfprintf warnings, Joerg Wunsch, 2002/11/11
- Re: [avr-libc-dev] vfprintf warnings, E. Weddington, 2002/11/11
- Re: [avr-libc-dev] vfprintf warnings, Joerg Wunsch, 2002/11/11
- Re: [avr-libc-dev] vfprintf warnings,
Theodore A. Roth <=
- Re: [avr-libc-dev] vfprintf warnings, E. Weddington, 2002/11/11
- Re: [avr-libc-dev] vfprintf warnings, Theodore A. Roth, 2002/11/11
- Re: [avr-libc-dev] vfprintf warnings, E. Weddington, 2002/11/11
- Re: [avr-libc-dev] vfprintf warnings, Theodore A. Roth, 2002/11/11
- Re: [avr-libc-dev] vfprintf warnings, Joerg Wunsch, 2002/11/11
- Re: [avr-libc-dev] vfprintf warnings, E. Weddington, 2002/11/11
- Re: [avr-libc-dev] vfprintf warnings, Joerg Wunsch, 2002/11/11