Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jul 2002 14:17:14 +0200
From:      Sheldon Hearn <sheldonh@starjuice.net>
To:        Juli Mallett <jmallett@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/bin/ps print.c
Message-ID:  <20020708121714.GF75407@starjuice.net>
In-Reply-To: <200207072146.g67Lk0nT041098@freefall.freebsd.org>
References:  <200207072146.g67Lk0nT041098@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On (2002/07/07 14:45), Juli Mallett wrote:

>   Modified files:
>     bin/ps               print.c 
>   Log:
>   Make printval() take a 'void *' thus negating any assumptions the compiler
>   may try to make about the alignment of the dereferenced datum.

Doesn't this break buildworld with warnings promoted to errors?

===> bin/ps
[...]
cc -O -pipe -march=pentiumpro -DLAZY_PS   -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wformat=2 -Wno-format-extra-args -Werror  -c /usr/src/bin/ps/print.c
cc1: warnings being treated as errors
/usr/src/bin/ps/print.c: In function `started':
/usr/src/bin/ps/print.c:400: warning: `%y' yields only last 2 digits of year
/usr/src/bin/ps/print.c: In function `lstarted':
/usr/src/bin/ps/print.c:417: warning: `%c' yields only last 2 digits of year in some locales on non-BSD systems
/usr/src/bin/ps/print.c: In function `printval':
/usr/src/bin/ps/print.c:686: warning: format not a string literal, argument types not checked
/usr/src/bin/ps/print.c:689: warning: format not a string literal, argument types not checked
[...]

Ciao,
Sheldon.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020708121714.GF75407>