automated-refactoring

    8热度

    10回答

    我想从C文件中删除未使用的局部变量。 例如: int fun(int a , int b) { int c,sum=0; sum=a + b; return sum; } 这里未使用的变量是'c'。 我将在外部列出所有未使用的局部变量。现在使用我没有使用的局部变量,我们必须从源代码&删除中找到局部变量。 在上面例子中“c”是未使用的变量。我会知道它(我有代码)