title: Function defined but not used warning in C
body: <p>I have a number of C source files(both .c and .h files). header files contains a number of functions. Out of those functions, only partially are used in a source .C file.Suppose a.h,b.h are header files  and  a.c and b.c are .c files. a.h  is included in a.c. But only a number of functions those are in a. h are used and rest are not used. After compilation I find following warnings:</p>
  
  <pre><code> function XXXX defined but not used.
  </code></pre>
  
  <p>But those XXXX functions which are not used in a.c are used in b.c. So, i can't completely remove those functions too. So , i decided to make a separate file containing only those XXXX functions and included it wherever it is used.Doing this is creating multiple number of header files. Can anybody please suggest me to some effective way to solve this problem.</p>