Hi,
I have some header files with #warnings, when I compile, the warning appears once for every source file which includes the header.
Is there a way to stop the warning being shown more than once?
Obviously #pragma once and #ifndef are all scope dependent, therefore, do not stop the repeat messages.
Carl.
Solved! Go to Solution.
Hello
The compiler is processing one compilation unit (Source file + all files included in there) at a time.
So the warning will be generated each time you have the corresponding .h file included in a C file.
There is no way to print a warning only once during a full build.
CrasyCat
Hello
The compiler is processing one compilation unit (Source file + all files included in there) at a time.
So the warning will be generated each time you have the corresponding .h file included in a C file.
There is no way to print a warning only once during a full build.
CrasyCat
Thanks, I was thinking there may be some 'trick' that I wasnt aware of