G
gaurav.dube
I am facing a problem with warning removal
I have got a header file it contains extern declarations of lot of
variables (say 100)
This header file is included in hundreds of .c files. Some of these .c
file contain definition of one the variable declared as extern in
header file. But since the header file is also included in this .c file
containing definition of variable, the compiler gives a warning . The
header file is common to hundreds of files ,so it is not possible to
remove extern declaration of variable from it, as it might be required
in other files.
Now my task is to remove these kind of warnings where a variable is
defined in the file and its extern is also declared in header file
included in this file. The code size is running into lakhs of lines.
I have got a header file it contains extern declarations of lot of
variables (say 100)
This header file is included in hundreds of .c files. Some of these .c
file contain definition of one the variable declared as extern in
header file. But since the header file is also included in this .c file
containing definition of variable, the compiler gives a warning . The
header file is common to hundreds of files ,so it is not possible to
remove extern declaration of variable from it, as it might be required
in other files.
Now my task is to remove these kind of warnings where a variable is
defined in the file and its extern is also declared in header file
included in this file. The code size is running into lakhs of lines.