硬编码变量,令人困惑的C语法

Sea*_*ghn 2 c porting

当我遇到这段代码时,我只是经历了一些C代码.

void someFunction(Int32 someVariable)
{
    /* someVariable is hard coded to 2 */
    (void)someVariable;

    //some processing that has nothing to do with someVariable.
}
Run Code Online (Sandbox Code Playgroud)

作者在评论中的意思是什么," someVariable被硬编码为2 "?究竟发生了someVariable什么?

Ale*_*nze 6

最有可能的是(转换函数参数void)来关闭编译器,否则会因为未使用的参数而发出警告或错误.值是否在某处"硬编码"与所呈现的代码无关.