Warning during QNX build:
I am using IDE 4.0.1 WINDOWS HOST
When I was trying with compilation in qnx environment, I use to get a warning like this:
In file included from …/source/sdk/source/port.cpp:168:
C:/QNX630/target/qnx6/usr/include/cpp/xlocale: In constructor `std::codecvt<_Elem, _Byte, _Statype>::codecvt(unsigned int) [with _Elem = char, _Byte = char, _Statype = _M
bstatet]’:
C:/QNX630/target/qnx6/usr/include/cpp/fstream:586: instantiated from here
C:/QNX630/target/qnx6/usr/include/cpp/xlocale:572: warning: declaration of _Refs' shadows a member of
this’
How I can suppress the warning for that particular file?
Apart from suppressing Is there any way of resolving this warning?
Below is the code snippet from where the warning is coming up,
The code in port.cpp file:
aud_in_port::aud_in_port()
: m_flg_filemode ( false )
, m_rate ( AUD_PCM_RATE_16000 )
, m_numchans ( AUD_MONO )
, m_fmt ( AUD_PCM_FMT_16)
, m_audio_type ( AUD_PCM_ATYPE_SPEECH )
, state (ST_IDLE)
{ //line number 168
}
The aud_in_port class in aud_in_port.h, is given below:
class aud_in_port
{
protected:
bool m_flg_filemode;
std::ifstream m_filestream;
size_t m_frag_size;
AUD_PCM_RATE_TYPE m_rate;
AUD_PCM_CHANNELS m_numchans;
AUD_PCM_FORMAT m_fmt;
AUD_PCM_AUDIO_TYPE m_audio_type;
public:
aud_in_port ();
virtual ~aud_in_port();
enum { ST_ERROR, ST_IDLE, ST_RUNNING} state;
// stops reading from current port
virtual bool wait_for_available_fragment() = 0;
virtual bool read ( char* pbuf );
virtual void cancel () = 0;
virtual void stop ();
virtual void close ();
virtual void change_setup ( AUD_PCM_RATE_TYPE rate,
AUD_PCM_CHANNELS chans,
AUD_PCM_FORMAT fmt,
AUD_PCM_AUDIO_TYPE type );
virtual bool wait_init () = 0; // wait for device to be initialized
size_t frag_size ();
void set_frag_size(size_t size);
bool set_filemode ( const char* filename );
};
Can anybody guide me in solving this issue.
Thanks in Advance,
Santha