Silence compiler warnings.
This commit was SVN r7768.
Этот коммит содержится в:
родитель
237bd4c6cd
Коммит
e097ee635a
@ -50,7 +50,13 @@ static inline void DUMP( char* fmt, ... )
|
||||
# if defined(__GNUC__) && !defined(__STDC__)
|
||||
# define DUMP(ARGS...)
|
||||
# else
|
||||
static inline void DUMP( char* fmt, ...) { /* empty hopefully removed by the compiler */ }
|
||||
static inline void DUMP( char* fmt, ...) {
|
||||
/* Some compilers complain if we have ... and no
|
||||
corresponding va_start() */
|
||||
va_list arglist;
|
||||
va_start(arglist, fmt);
|
||||
va_end(arglist);
|
||||
}
|
||||
# endif /* __GNUC__ && !__STDC__ */
|
||||
# endif /* ACCEPT_C99 */
|
||||
#endif /* VERBOSE */
|
||||
|
@ -98,7 +98,12 @@ void ompi_mpi_errors_are_fatal_win_handler(struct ompi_win_t **win,
|
||||
void ompi_mpi_errors_return_comm_handler(struct ompi_communicator_t **comm,
|
||||
int *error_code, ...)
|
||||
{
|
||||
/* Don't need anything more -- just need this function to exist */
|
||||
/* Don't need anything more -- just need this function to exist */
|
||||
/* Silence some compiler warnings */
|
||||
|
||||
va_list arglist;
|
||||
va_start(arglist, error_code);
|
||||
va_end(arglist);
|
||||
}
|
||||
|
||||
|
||||
@ -106,6 +111,11 @@ void ompi_mpi_errors_return_file_handler(struct ompi_file_t **file,
|
||||
int *error_code, ...)
|
||||
{
|
||||
/* Don't need anything more -- just need this function to exist */
|
||||
/* Silence some compiler warnings */
|
||||
|
||||
va_list arglist;
|
||||
va_start(arglist, error_code);
|
||||
va_end(arglist);
|
||||
}
|
||||
|
||||
|
||||
@ -113,7 +123,12 @@ void ompi_mpi_errors_return_file_handler(struct ompi_file_t **file,
|
||||
void ompi_mpi_errors_return_win_handler(struct ompi_win_t **win,
|
||||
int *error_code, ...)
|
||||
{
|
||||
/* Don't need anything more -- just need this function to exist */
|
||||
/* Don't need anything more -- just need this function to exist */
|
||||
/* Silence some compiler warnings */
|
||||
|
||||
va_list arglist;
|
||||
va_start(arglist, error_code);
|
||||
va_end(arglist);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -31,12 +31,19 @@ static const char FUNC_NAME[] = "MPI_Pcontrol";
|
||||
|
||||
int MPI_Pcontrol(const int level, ...)
|
||||
{
|
||||
if (MPI_PARAM_CHECK) {
|
||||
OMPI_ERR_INIT_FINALIZE(FUNC_NAME);
|
||||
}
|
||||
va_list arglist;
|
||||
|
||||
/* There's nothing to do here */
|
||||
if (MPI_PARAM_CHECK) {
|
||||
OMPI_ERR_INIT_FINALIZE(FUNC_NAME);
|
||||
}
|
||||
|
||||
return MPI_SUCCESS;
|
||||
/* Silence some compiler warnings */
|
||||
|
||||
va_start(arglist, level);
|
||||
va_end(arglist);
|
||||
|
||||
/* There's nothing to do here */
|
||||
|
||||
return MPI_SUCCESS;
|
||||
}
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user