C语言 宏定义 变量unuse如何解决

int main() {
  __s32 res = 0;

#ifdef ENABLE
  // 使用res变量的code
#endif

return 0;
}

这个代码在没有设置ENABLE的时候,会报警告res这个变量unuse,我想问问有什么办法定义变量可以解决?我在想宏定义可不可以,但是我不太懂C,不知道具体怎么做。

建议__s32 res = 0;也是用ENABLE括起来

#ifdef ENABLE
__s32 res = 0;
#endif
others;
#ifdef ENABLE
  // 使用res变量的code
#endif

如果要是用res的时候,在main()之前
#define ENBALE
如果不使用可以就把#define ENBALE删除
或者#undefine ENBALE