lkml.org 
[lkml]   [2004]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectNew ide-proc warning from min/max changes
This is 2.6.6-rc3 on a sparc64. This warning has appeared with the
IDE min/max changes:

CC drivers/ide/ide-proc.o
drivers/ide/ide-proc.c: In function `proc_ide_write_settings':
drivers/ide/ide-proc.c:511: warning: comparison of distinct pointer types lacks a cast

The line in question is
len = min(p - start, MAX_LEN);
where p and start are pointers of type "const char *" and MAX_LEN is
#define MAX_LEN 30

--
Meelis Roos (mroos@linux.ee)


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.035 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site