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__)
|
# if defined(__GNUC__) && !defined(__STDC__)
|
||||||
# define DUMP(ARGS...)
|
# define DUMP(ARGS...)
|
||||||
# else
|
# 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 /* __GNUC__ && !__STDC__ */
|
||||||
# endif /* ACCEPT_C99 */
|
# endif /* ACCEPT_C99 */
|
||||||
#endif /* VERBOSE */
|
#endif /* VERBOSE */
|
||||||
|
@ -99,6 +99,11 @@ void ompi_mpi_errors_return_comm_handler(struct ompi_communicator_t **comm,
|
|||||||
int *error_code, ...)
|
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, ...)
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -114,6 +124,11 @@ void ompi_mpi_errors_return_win_handler(struct ompi_win_t **win,
|
|||||||
int *error_code, ...)
|
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
|
#endif
|
||||||
|
|
||||||
|
@ -31,10 +31,17 @@ static const char FUNC_NAME[] = "MPI_Pcontrol";
|
|||||||
|
|
||||||
int MPI_Pcontrol(const int level, ...)
|
int MPI_Pcontrol(const int level, ...)
|
||||||
{
|
{
|
||||||
|
va_list arglist;
|
||||||
|
|
||||||
if (MPI_PARAM_CHECK) {
|
if (MPI_PARAM_CHECK) {
|
||||||
OMPI_ERR_INIT_FINALIZE(FUNC_NAME);
|
OMPI_ERR_INIT_FINALIZE(FUNC_NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Silence some compiler warnings */
|
||||||
|
|
||||||
|
va_start(arglist, level);
|
||||||
|
va_end(arglist);
|
||||||
|
|
||||||
/* There's nothing to do here */
|
/* There's nothing to do here */
|
||||||
|
|
||||||
return MPI_SUCCESS;
|
return MPI_SUCCESS;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user