lkml.org 
[lkml]   [2004]   [Apr]   [28]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateWed, 28 Apr 2004 11:42:54 +0300 (EEST)
FromMeelis Roos <>
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 13:02    [from the cache]
©2003-2008