相关疑难解决方法(0)

抑制"ISO C99要求使用休息参数"

考虑以下两个宏:

#define PNORM( v, s, ... )  { \
  if( VERBOSITY_CHECK( v ) ) { \
    if( ( errno = pthread_mutex_lock(&server.output_mutex) ) ) { \
      PERROR_LOCKFREE( normal, "\tpthread_mutex_lock failed on output_mutex.\r\n" ) ; \
    } \
    fprintf( stdout, s, ## __VA_ARGS__ ) ; \
    fflush( stdout ) ; \
    if( ( errno = pthread_mutex_unlock(&server.output_mutex) ) ) { \
      PERROR_LOCKFREE( normal, "\tpthread_mutex_unlock failed on output_mutex.\r\n" ) ; \
    } \
  } \
}

#define PERROR_LOCKFREE( v, s, ... ) { \ …
Run Code Online (Sandbox Code Playgroud)

c gcc posix variadic-functions gcc-warning

10
推荐指数
1
解决办法
1万
查看次数

标签 统计

c ×1

gcc ×1

gcc-warning ×1

posix ×1

variadic-functions ×1