Pedro Alves
2006-10-18 16:44:21 UTC
Hi all,
That warning about casting pointer to non pointer and vice-versa caused by:
/* A handle is usually a void*, but we must guarantee 32-bit! */
typedef uint32_t HANDLE;
... is annoying.
Would it be possible to change it to something like this?
#ifdef __GNUC__
typedef void* __attribute__((mode(SI))) HANDLE;
#else
typedef uint32_t HANDLE;
#endif
I don't have a 64-bit system to test this, but it should force HANDLE to 32 bits.
Cheers,
Pedro Alves
That warning about casting pointer to non pointer and vice-versa caused by:
/* A handle is usually a void*, but we must guarantee 32-bit! */
typedef uint32_t HANDLE;
... is annoying.
Would it be possible to change it to something like this?
#ifdef __GNUC__
typedef void* __attribute__((mode(SI))) HANDLE;
#else
typedef uint32_t HANDLE;
#endif
I don't have a 64-bit system to test this, but it should force HANDLE to 32 bits.
Cheers,
Pedro Alves