mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-03 06:24:39 -04:00
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:
+2
-2
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user