[mpich-devel] warning: returning 'uint32_t *' (aka 'unsigned int *') from a function with result type 'int *' converts between pointers to integer types with different sign
Jeff Hammond
jeff.science at gmail.com
Mon Mar 9 19:53:55 CDT 2015
I know some of you like warning-clean builds...
../src/mpid/ch3/src/mpid_comm_get_all_failed_procs.c:20:14: warning:
assigning to 'uint32_t *' (aka 'unsigned int *') from 'int *'
converts between pointers to integer types with different sign
[-Wpointer-sign]
bitarray = (int *) MPIU_Malloc(sizeof(int) * bitarray_size);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/mpid/ch3/src/mpid_comm_get_all_failed_procs.c:24:16: warning:
returning 'uint32_t *' (aka 'unsigned int *') from a function
with result type 'int *' converts between pointers to integer
types with different sign [-Wpointer-sign]
return bitarray;
^~~~~~~~
../src/mpid/ch3/src/mpid_comm_get_all_failed_procs.c:46:12: warning:
returning 'uint32_t *' (aka 'unsigned int *') from a function
with result type 'int *' converts between pointers to integer
types with different sign [-Wpointer-sign]
return bitarray;
^~~~~~~~
../src/mpid/ch3/src/mpid_comm_get_all_failed_procs.c:107:14: warning:
assigning to 'uint32_t *' (aka 'unsigned int *') from
'int *' converts between pointers to integer types with
different sign [-Wpointer-sign]
bitarray = group_to_bitarray(local_fail, comm_ptr);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
Best,
Jeff
--
Jeff Hammond
jeff.science at gmail.com
http://jeffhammond.github.io/
More information about the devel
mailing list