Some stupid warnings
Posted
by thetna
on Stack Overflow
See other posts from Stack Overflow
or by thetna
Published on 2010-05-16T22:32:09Z
Indexed on
2010/05/16
22:40 UTC
Read the original article
Hit count: 201
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:
function XXXX defined but not used.
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.
© Stack Overflow or respective owner