I suggest that you deal with the differences between the two versions in the makefile. You can determine the GCC version and enable additional warning options if the GCC version supports them. This will help when the company finally moves forward.
It is worth fixing the code, but do not use warnings. This is what tells you about the problem in the first place (otherwise you would not have resolved them correctly?)
In any case, you can bypass unused warnings to system functions by discarding the result, which will be devoid of the compiler, you should ignore:
(void)builtin( ... );
source
share