Removed unused variables and fixed GCC warnings
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6259 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
c6fdb4436d
commit
2d99d7ad3e
26 changed files with 124 additions and 96 deletions
|
@ -102,7 +102,7 @@ public:
|
|||
{
|
||||
size_t cbio = fread(s, 1, n, m_File);
|
||||
m_LastReadCount = cbio;
|
||||
if (cbio != n)
|
||||
if (cbio != (size_t)n)
|
||||
{
|
||||
m_state |= ferror(m_File) ? ios_base::badbit : (ios_base::eofbit|ios_base::failbit);
|
||||
}
|
||||
|
@ -126,7 +126,7 @@ public:
|
|||
simplebfstream& write(const char* s, streamsize n)
|
||||
{
|
||||
size_t cbio = fwrite(s, 1, n, m_File);
|
||||
if (cbio != n) m_state |= ios_base::badbit;
|
||||
if (cbio != (size_t)n) m_state |= ios_base::badbit;
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue