I have some old code (rather a lot actually) that I port around and use here and there. Well, ported into a project here on Mbed.
As expected with using a modern compiler with old code I had some warnings, so I dusted these off with a spring clean of the code. The problem is I am now left with a number of warnings I can't appear to do anything about as they seem to be within teh compiler enviroment. Here's the warnings (darn it, can't c'n'p warnings!):-
Description
[1] <__c.0> may be used before being set fstream.cc /opt/RVDS4/RVCT/Data/4.0/400/include/unix Line: 674 Col 10
[2] <__c.0> may be used before being set streambuf /opt/RVDS4/RVCT/Data/4.0/400/include/unix Line: 394 Col 12
[3] as [2] above Line 473 Col 6
[4] repeat of [3]
[5] <__c.0> may be used before being set ostream /opt/RVDS4/RVCT/Data/4.0/400/include/unix Line: 301 Col 6
[6] repeat of [5]
[7] repeat of [2]
[8] repeat of [3]
Is there a way from the preprocessor to disable these warnings? I have no idea what code files I have that may be responsible for creating these warnings as there's not enough info to backtrace to the src. Not even sure if there's a real problem with the code or not as I can't see what the compiler is complaining about at all.
I have some old code (rather a lot actually) that I port around and use here and there. Well, ported into a project here on Mbed.
As expected with using a modern compiler with old code I had some warnings, so I dusted these off with a spring clean of the code. The problem is I am now left with a number of warnings I can't appear to do anything about as they seem to be within teh compiler enviroment. Here's the warnings (darn it, can't c'n'p warnings!):-
Is there a way from the preprocessor to disable these warnings? I have no idea what code files I have that may be responsible for creating these warnings as there's not enough info to backtrace to the src. Not even sure if there's a real problem with the code or not as I can't see what the compiler is complaining about at all.