Flexible I/O Tester development
 help / color / mirror / Atom feed
* New build warnings on Windows
@ 2014-02-11 23:48 Bruce Cran
  2014-02-12  4:49 ` Jens Axboe
  0 siblings, 1 reply; 4+ messages in thread
From: Bruce Cran @ 2014-02-11 23:48 UTC (permalink / raw)
  To: fio@vger.kernel.org

There are some new warnings in 2.1.5 when building on Windows:

In file included from io_u.c:14:0:
err.h: In function �ERR_PTR�:
err.h:18:9: warning: cast to pointer from integer of different size 
[-Wint-to-pointer-cast]
return (void *) error;
^
err.h: In function �PTR_ERR�:
err.h:23:9: warning: cast from pointer to integer of different size 
[-Wpointer-to-int-cast]
return (long) ptr;
^
err.h: In function �IS_ERR�:
err.h:28:22: warning: cast from pointer to integer of different size 
[-Wpointer-to-int-cast]
return IS_ERR_VALUE((unsigned long)ptr);
^
err.h:14:27: note: in definition of macro �IS_ERR_VALUE�
#define IS_ERR_VALUE(x) ((x) >= (unsigned long)-MAX_ERRNO)
^
err.h: In function �IS_ERR_OR_NULL�:
err.h:33:30: warning: cast from pointer to integer of different size 
[-Wpointer-to-int-cast]
return !ptr || IS_ERR_VALUE((unsigned long)ptr);
^
err.h:14:27: note: in definition of macro �IS_ERR_VALUE�
#define IS_ERR_VALUE(x) ((x) >= (unsigned long)-MAX_ERRNO)

-- 
Bruce

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-02-12 15:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-11 23:48 New build warnings on Windows Bruce Cran
2014-02-12  4:49 ` Jens Axboe
2014-02-12 15:38   ` Bruce Cran
2014-02-12 15:43     ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox