title: How ignore error when use -Werror?
body: <p>I have the follow test code <code>test.c</code>:</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  int *func()
  {
      int i = 123;
      return &amp;i;
  }
  
  int main()
  {
      printf("%d\n", *func());
  }
  </code></pre>
  
  <p>If I use the command compile it that is OK:</p>
  
  <pre><code>gcc test.c -o test
  </code></pre>
  
  <p>It will have the follow warning info:</p>
  
  <pre><code>warning: address of stack memory associated with local variable 'i'
    returned [-Wreturn-stack-address]
  return &amp;i;
          ^
  1 warning generated.   
  </code></pre>
  
  <p>But it can output result: <code>123</code></p>
  
  <p>If I use the command:</p>
  
  <pre><code>gcc -Werror test.c -o test
  </code></pre>
  
  <p>It will have the follow error info:</p>
  
  <pre><code>error: address of stack memory associated with local variable 'i'
    returned [-Werror,-Wreturn-stack-address]
  return &amp;i;
          ^
  1 error generated. 
  </code></pre>
  
  <p>Now I want to use <code>-Werror</code> option, but I also want to ignore the <code>address of stack memory associated with local variable 'i'</code> warning, how should I do?</p>