Unix Technical Forum

Re: In function `k_getuid6': comparison is always false due to limited range of data type

This is a discussion on Re: In function `k_getuid6': comparison is always false due to limited range of data type within the mailing.openbsd.tech forums, part of the OpenBSD category; --> On Wed, Jun 13, 2007 at 12:45:05AM +0200, Stefan Sperling wrote: > I just saw this while compiling -current: ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > mailing.openbsd.tech

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 09:26 AM
Claudio Jeker
 
Posts: n/a
Default Re: In function `k_getuid6': comparison is always false due to limited range of data type

On Wed, Jun 13, 2007 at 12:45:05AM +0200, Stefan Sperling wrote:
> I just saw this while compiling -current:
>
> ===> libexec/identd
> cc -O2 -pipe -Wall -c /usr/src/libexec/identd/identd.c
> cc -O2 -pipe -Wall -c /usr/src/libexec/identd/openbsd.c
> /usr/src/libexec/identd/openbsd.c: In function `k_getuid6':
> /usr/src/libexec/identd/openbsd.c:89: warning: comparison is always
> false due to limited range of data type
> /usr/src/libexec/identd/openbsd.c:92: warning: comparison is always
> false due to limited range of data type
>


These are gcc warnings that can easily win the most stupid gcc warnings
award. So somebody adds a currently superfluous check because he is
conservative, now somebody sees these warnings and removes all the checks.
A bit later a third person changes the data type to a larger/signed one
and bam we have a problem.
Just ignore the warnings.

--
:wq Claudio

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:52 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com