Hacker News new | ask | show | jobs
by noselasd 4575 days ago
gcc has this capability: http://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html

I recon you meant unused variables (as assinging an unitialized variable to itself would beat the purpose) you can use __attribute__((unused)) on it - normally #defined to a macro.