阅读背景:

如何修复以下警告:格式不是字符串文字而没有格式参数?

来源:互联网 

I have the following code:

我有以下代码:

#include<stdio.h>
#include<stdlib.h>

#define MACRO_TEST(MESSAGE,args...) { \
  const char *A[] = {MESSAGE}; \
  printf("this is a test\n");\
  if(sizeof(A) > 0) \
    printf(*A,##args); \
}
int main () {
    MACRO_TEST();
    MACRO_TEST("hello %d\n",5);
    return 0;
}
#include



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到:
你可能喜欢: