1
1

A function declared as static inline and who's not used directly, but

only as a pointer reference completely confuse some compilers (gcc 4.1
included). Removing the inline (it was there before when the function
was used in the same file) seems to solve the problem. However, the most
strange thing is that the bug only appear when we compile directly in
the trunk directory. It just don't happens when we're using the VPATH
build.

This commit was SVN r9408.
Этот коммит содержится в:
George Bosilca 2006-03-24 04:21:30 +00:00
родитель 23f0aef07c
Коммит dabe47ca3d
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -35,7 +35,7 @@ static mca_pml_ob1_recv_frag_t* mca_pml_ob1_recv_request_match_specific_proc(
mca_pml_ob1_recv_request_t* request, mca_pml_ob1_comm_proc_t* proc); mca_pml_ob1_recv_request_t* request, mca_pml_ob1_comm_proc_t* proc);
static inline int mca_pml_ob1_recv_request_free(struct ompi_request_t** request) static int mca_pml_ob1_recv_request_free(struct ompi_request_t** request)
{ {
mca_pml_ob1_recv_request_t* recvreq = *(mca_pml_ob1_recv_request_t**)request; mca_pml_ob1_recv_request_t* recvreq = *(mca_pml_ob1_recv_request_t**)request;

Просмотреть файл

@ -41,7 +41,7 @@
* for others p2p communications. Therefore, in the case of the OB1 PML it should * for others p2p communications. Therefore, in the case of the OB1 PML it should
* be added to the free request list. * be added to the free request list.
*/ */
static inline int mca_pml_ob1_send_request_free(struct ompi_request_t** request) static int mca_pml_ob1_send_request_free(struct ompi_request_t** request)
{ {
mca_pml_ob1_send_request_t* sendreq = *(mca_pml_ob1_send_request_t**)request; mca_pml_ob1_send_request_t* sendreq = *(mca_pml_ob1_send_request_t**)request;