在一个代码中看到我已通过编译此代码-Wall标志书面警告:未使用的变量
void my_function()
{
INT32 i; /* Variable for iteration */
/* If system is little-endian, store bytes in array as reverse order */
#ifdef LITTLE
{
// i m using i for operating one loop
}
#endif
/* If the system is big-endian, store bytes in array as forward order */
#ifdef BIG
{
// using i for loop
}
#endif
return;
}
它显示
warning: unused variable ‘i’
为什么呢? 我该如何删除它?
哪个编译器? –
线程型号:posix gcc版本4.5.1 20100924(Red Hat 4.5.1-4)(GCC) –
你在哪里使用我? –