Fix some compiler warnings and error

Clang++ detected some warnings that g++ did not.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6409 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville
2016-01-20 20:32:30 +00:00
parent 0f59c63ea6
commit a3c1c768ef
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -602,7 +602,7 @@ void BWFFile::bext_time_reference (quint64 time_code)
auto BWFFile::bext_umid () const -> UMID
{
UMID umid {'\0'};
UMID umid {{'\0'}};
if (m_->bext ())
{
umid = m_->bext ()->umid_;
@@ -702,7 +702,7 @@ bool BWFFile::reset ()
m_->bext_.clear ();
auto size = m_->data_size_ < 0 ? m_->file_.size () - m_->header_length_ : m_->data_size_;
m_->data_size_ = size;
if (m_->header_length_ > 3 * sizeof (Desc) + 4 + sizeof (FormatChunk))
if (m_->header_length_ > qint64 (3 * sizeof (Desc) + 4 + sizeof (FormatChunk)))
{
// we need to move the data down
auto old_pos = m_->header_length_;