Skip to content

Instantly share code, notes, and snippets.

@berkus
Created November 19, 2013 08:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save berkus/7541881 to your computer and use it in GitHub Desktop.
Save berkus/7541881 to your computer and use it in GitHub Desktop.
> clang -c gistfile1.c
gistfile1.c:26:22: warning: duplicate 'const' declaration specifier
[-Wduplicate-decl-specifier]
static const int const oparray[]=
^
gistfile1.c:176:17: warning: format specifies type 'int *' but the argument has
type 'inst *' (aka 'unsigned long long *') [-Wformat]
READ_AND_SET_IMMV(1);
^~~~~~~~~~~~~~~~~~~~~
gistfile1.c:166:33: note: expanded from macro 'READ_AND_SET_IMMV'
scanf("%d", &arg##_ARG_NUM##_i); \
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:178:17: warning: format specifies type 'char *' but the argument has
type 'char (*)[32]' [-Wformat]
READ_AND_SET_R_OR_IMMV(1);
^~~~~~~~~~~~~~~~~~~~~~~~~~
gistfile1.c:144:33: note: expanded from macro 'READ_AND_SET_R_OR_IMMV'
scanf("%s", &arg##_ARG_NUM##_s); \
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:178:17: warning: format specifies type 'int *' but the argument has
type 'inst *' (aka 'unsigned long long *') [-Wformat]
READ_AND_SET_R_OR_IMMV(1);
^~~~~~~~~~~~~~~~~~~~~~~~~~
gistfile1.c:147:61: note: expanded from macro 'READ_AND_SET_R_OR_IMMV'
sscanf(&arg##_ARG_NUM##_s[2], "%d", &arg##_ARG_N...
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:178:17: warning: format specifies type 'int *' but the argument has
type 'inst *' (aka 'unsigned long long *') [-Wformat]
READ_AND_SET_R_OR_IMMV(1);
^~~~~~~~~~~~~~~~~~~~~~~~~~
gistfile1.c:152:61: note: expanded from macro 'READ_AND_SET_R_OR_IMMV'
sscanf(&arg##_ARG_NUM##_s[0], "%d", &arg##_ARG_N...
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:179:17: warning: format specifies type 'char *' but the argument has
type 'char (*)[32]' [-Wformat]
READ_AND_SET_R_OR_IMMV(2);
^~~~~~~~~~~~~~~~~~~~~~~~~~
gistfile1.c:144:33: note: expanded from macro 'READ_AND_SET_R_OR_IMMV'
scanf("%s", &arg##_ARG_NUM##_s); \
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:179:17: warning: format specifies type 'int *' but the argument has
type 'inst *' (aka 'unsigned long long *') [-Wformat]
READ_AND_SET_R_OR_IMMV(2);
^~~~~~~~~~~~~~~~~~~~~~~~~~
gistfile1.c:147:61: note: expanded from macro 'READ_AND_SET_R_OR_IMMV'
sscanf(&arg##_ARG_NUM##_s[2], "%d", &arg##_ARG_N...
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:179:17: warning: format specifies type 'int *' but the argument has
type 'inst *' (aka 'unsigned long long *') [-Wformat]
READ_AND_SET_R_OR_IMMV(2);
^~~~~~~~~~~~~~~~~~~~~~~~~~
gistfile1.c:152:61: note: expanded from macro 'READ_AND_SET_R_OR_IMMV'
sscanf(&arg##_ARG_NUM##_s[0], "%d", &arg##_ARG_N...
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:180:17: warning: format specifies type 'int *' but the argument has
type 'inst *' (aka 'unsigned long long *') [-Wformat]
READ_AND_SET_IMMV(3);
^~~~~~~~~~~~~~~~~~~~~
gistfile1.c:166:33: note: expanded from macro 'READ_AND_SET_IMMV'
scanf("%d", &arg##_ARG_NUM##_i); \
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:182:17: warning: format specifies type 'char *' but the argument has
type 'char (*)[32]' [-Wformat]
READ_AND_SET_R(1);
^~~~~~~~~~~~~~~~~~
gistfile1.c:159:33: note: expanded from macro 'READ_AND_SET_R'
scanf("%s", &arg##_ARG_NUM##_s); \
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:182:17: warning: format specifies type 'int *' but the argument has
type 'inst *' (aka 'unsigned long long *') [-Wformat]
READ_AND_SET_R(1);
^~~~~~~~~~~~~~~~~~
gistfile1.c:160:57: note: expanded from macro 'READ_AND_SET_R'
sscanf(&arg##_ARG_NUM##_s[2], "%d", &arg##_ARG_NUM##_i); \
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:183:17: warning: format specifies type 'char *' but the argument has
type 'char (*)[32]' [-Wformat]
READ_AND_SET_R_OR_IMMV(2);
^~~~~~~~~~~~~~~~~~~~~~~~~~
gistfile1.c:144:33: note: expanded from macro 'READ_AND_SET_R_OR_IMMV'
scanf("%s", &arg##_ARG_NUM##_s); \
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:183:17: warning: format specifies type 'int *' but the argument has
type 'inst *' (aka 'unsigned long long *') [-Wformat]
READ_AND_SET_R_OR_IMMV(2);
^~~~~~~~~~~~~~~~~~~~~~~~~~
gistfile1.c:147:61: note: expanded from macro 'READ_AND_SET_R_OR_IMMV'
sscanf(&arg##_ARG_NUM##_s[2], "%d", &arg##_ARG_N...
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:183:17: warning: format specifies type 'int *' but the argument has
type 'inst *' (aka 'unsigned long long *') [-Wformat]
READ_AND_SET_R_OR_IMMV(2);
^~~~~~~~~~~~~~~~~~~~~~~~~~
gistfile1.c:152:61: note: expanded from macro 'READ_AND_SET_R_OR_IMMV'
sscanf(&arg##_ARG_NUM##_s[0], "%d", &arg##_ARG_N...
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:185:17: warning: format specifies type 'char *' but the argument has
type 'char (*)[32]' [-Wformat]
READ_AND_SET_R_OR_IMMV(1);
^~~~~~~~~~~~~~~~~~~~~~~~~~
gistfile1.c:144:33: note: expanded from macro 'READ_AND_SET_R_OR_IMMV'
scanf("%s", &arg##_ARG_NUM##_s); \
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:185:17: warning: format specifies type 'int *' but the argument has
type 'inst *' (aka 'unsigned long long *') [-Wformat]
READ_AND_SET_R_OR_IMMV(1);
^~~~~~~~~~~~~~~~~~~~~~~~~~
gistfile1.c:147:61: note: expanded from macro 'READ_AND_SET_R_OR_IMMV'
sscanf(&arg##_ARG_NUM##_s[2], "%d", &arg##_ARG_N...
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:185:17: warning: format specifies type 'int *' but the argument has
type 'inst *' (aka 'unsigned long long *') [-Wformat]
READ_AND_SET_R_OR_IMMV(1);
^~~~~~~~~~~~~~~~~~~~~~~~~~
gistfile1.c:152:61: note: expanded from macro 'READ_AND_SET_R_OR_IMMV'
sscanf(&arg##_ARG_NUM##_s[0], "%d", &arg##_ARG_N...
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:186:17: warning: format specifies type 'char *' but the argument has
type 'char (*)[32]' [-Wformat]
READ_AND_SET_R_OR_IMMV(2);
^~~~~~~~~~~~~~~~~~~~~~~~~~
gistfile1.c:144:33: note: expanded from macro 'READ_AND_SET_R_OR_IMMV'
scanf("%s", &arg##_ARG_NUM##_s); \
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:186:17: warning: format specifies type 'int *' but the argument has
type 'inst *' (aka 'unsigned long long *') [-Wformat]
READ_AND_SET_R_OR_IMMV(2);
^~~~~~~~~~~~~~~~~~~~~~~~~~
gistfile1.c:147:61: note: expanded from macro 'READ_AND_SET_R_OR_IMMV'
sscanf(&arg##_ARG_NUM##_s[2], "%d", &arg##_ARG_N...
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:186:17: warning: format specifies type 'int *' but the argument has
type 'inst *' (aka 'unsigned long long *') [-Wformat]
READ_AND_SET_R_OR_IMMV(2);
^~~~~~~~~~~~~~~~~~~~~~~~~~
gistfile1.c:152:61: note: expanded from macro 'READ_AND_SET_R_OR_IMMV'
sscanf(&arg##_ARG_NUM##_s[0], "%d", &arg##_ARG_N...
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:187:17: warning: format specifies type 'char *' but the argument has
type 'char (*)[32]' [-Wformat]
READ_AND_SET_R(3);
^~~~~~~~~~~~~~~~~~
gistfile1.c:159:33: note: expanded from macro 'READ_AND_SET_R'
scanf("%s", &arg##_ARG_NUM##_s); \
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:187:17: warning: format specifies type 'int *' but the argument has
type 'inst *' (aka 'unsigned long long *') [-Wformat]
READ_AND_SET_R(3);
^~~~~~~~~~~~~~~~~~
gistfile1.c:160:57: note: expanded from macro 'READ_AND_SET_R'
sscanf(&arg##_ARG_NUM##_s[2], "%d", &arg##_ARG_NUM##_i); \
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:189:17: warning: format specifies type 'char *' but the argument has
type 'char (*)[32]' [-Wformat]
READ_AND_SET_R_OR_IMMV(1);
^~~~~~~~~~~~~~~~~~~~~~~~~~
gistfile1.c:144:33: note: expanded from macro 'READ_AND_SET_R_OR_IMMV'
scanf("%s", &arg##_ARG_NUM##_s); \
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:189:17: warning: format specifies type 'int *' but the argument has
type 'inst *' (aka 'unsigned long long *') [-Wformat]
READ_AND_SET_R_OR_IMMV(1);
^~~~~~~~~~~~~~~~~~~~~~~~~~
gistfile1.c:147:61: note: expanded from macro 'READ_AND_SET_R_OR_IMMV'
sscanf(&arg##_ARG_NUM##_s[2], "%d", &arg##_ARG_N...
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:189:17: warning: format specifies type 'int *' but the argument has
type 'inst *' (aka 'unsigned long long *') [-Wformat]
READ_AND_SET_R_OR_IMMV(1);
^~~~~~~~~~~~~~~~~~~~~~~~~~
gistfile1.c:152:61: note: expanded from macro 'READ_AND_SET_R_OR_IMMV'
sscanf(&arg##_ARG_NUM##_s[0], "%d", &arg##_ARG_N...
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:190:17: warning: format specifies type 'char *' but the argument has
type 'char (*)[32]' [-Wformat]
READ_AND_SET_R_OR_IMMV(2);
^~~~~~~~~~~~~~~~~~~~~~~~~~
gistfile1.c:144:33: note: expanded from macro 'READ_AND_SET_R_OR_IMMV'
scanf("%s", &arg##_ARG_NUM##_s); \
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:190:17: warning: format specifies type 'int *' but the argument has
type 'inst *' (aka 'unsigned long long *') [-Wformat]
READ_AND_SET_R_OR_IMMV(2);
^~~~~~~~~~~~~~~~~~~~~~~~~~
gistfile1.c:147:61: note: expanded from macro 'READ_AND_SET_R_OR_IMMV'
sscanf(&arg##_ARG_NUM##_s[2], "%d", &arg##_ARG_N...
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:190:17: warning: format specifies type 'int *' but the argument has
type 'inst *' (aka 'unsigned long long *') [-Wformat]
READ_AND_SET_R_OR_IMMV(2);
^~~~~~~~~~~~~~~~~~~~~~~~~~
gistfile1.c:152:61: note: expanded from macro 'READ_AND_SET_R_OR_IMMV'
sscanf(&arg##_ARG_NUM##_s[0], "%d", &arg##_ARG_N...
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:191:17: warning: format specifies type 'char *' but the argument has
type 'char (*)[32]' [-Wformat]
READ_AND_SET_R(3);
^~~~~~~~~~~~~~~~~~
gistfile1.c:159:33: note: expanded from macro 'READ_AND_SET_R'
scanf("%s", &arg##_ARG_NUM##_s); \
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:191:17: warning: format specifies type 'int *' but the argument has
type 'inst *' (aka 'unsigned long long *') [-Wformat]
READ_AND_SET_R(3);
^~~~~~~~~~~~~~~~~~
gistfile1.c:160:57: note: expanded from macro 'READ_AND_SET_R'
sscanf(&arg##_ARG_NUM##_s[2], "%d", &arg##_ARG_NUM##_i); \
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:193:17: warning: format specifies type 'char *' but the argument has
type 'char (*)[32]' [-Wformat]
READ_AND_SET_R_OR_IMMV(1);
^~~~~~~~~~~~~~~~~~~~~~~~~~
gistfile1.c:144:33: note: expanded from macro 'READ_AND_SET_R_OR_IMMV'
scanf("%s", &arg##_ARG_NUM##_s); \
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:193:17: warning: format specifies type 'int *' but the argument has
type 'inst *' (aka 'unsigned long long *') [-Wformat]
READ_AND_SET_R_OR_IMMV(1);
^~~~~~~~~~~~~~~~~~~~~~~~~~
gistfile1.c:147:61: note: expanded from macro 'READ_AND_SET_R_OR_IMMV'
sscanf(&arg##_ARG_NUM##_s[2], "%d", &arg##_ARG_N...
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
gistfile1.c:193:17: warning: format specifies type 'int *' but the argument has
type 'inst *' (aka 'unsigned long long *') [-Wformat]
READ_AND_SET_R_OR_IMMV(1);
^~~~~~~~~~~~~~~~~~~~~~~~~~
gistfile1.c:152:61: note: expanded from macro 'READ_AND_SET_R_OR_IMMV'
sscanf(&arg##_ARG_NUM##_s[0], "%d", &arg##_ARG_N...
~~ ^
gistfile1.c:100:17: note: expanded from macro 'OP_SWITCH'
_CODE \
^
33 warnings generated.
@berkus
Copy link
Author

berkus commented Nov 19, 2013

clang --version
Apple LLVM version 5.0 (clang-500.2.78) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment