title: Tell gcc that a function call will not return
body: <p>I am using <code>C99</code> under <code>GCC</code>.</p>
  
  <p>I have a function declared <code>static</code> <code>inline</code> in a header that I cannot modify.</p>
  
  <p>The function never returns but is not marked <code>__attribute__((noreturn))</code>.</p>
  
  <p>How can I call the function in a way that tells the compiler it will not return?</p>
  
  <p>I am calling it from my own noreturn function, and partly want to suppress the "noreturn function returns" warning but also want to help the optimizer etc.</p>
  
  <p>I have tried including a declaration with the attribute but get a warning about the repeated declaration.</p>
  
  <p>I have tried creating a function pointer and applying the attribute to that, but it says the function attribute cannot apply to a pointed function.</p>