Some compilers complain when variables are never actually used for anything. eg:
int main(int argc, char **argv) { return 0; }
gives:
Output from llvm C/C++/Fortran front-end (llvm-gcc) /tmp/webcompile/_7618_1.c: In function 'main': /tmp/webcompile/_7618_1.c:9: warning: unused parameter 'argc' /tmp/webcompile/_7618_1.c:9: warning: unused parameter 'argv'
Basically, I can just get rid of these warnings using your macro:
#define USE(x) (x) = (x) int main(int argc, char **argv) { USE(argc); USE(argv); return 0; }
SingleNegationElimination
source share