mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-06-13 19:15:07 -04:00
[EGD-6946] Fix build for GCC11
Fix build issues identified when building on Fedora 34 using GCC11. Signed-off-by: Alistair Francis <alistair@alistair23.me>
This commit is contained in:
committed by
Alek Rudnik
parent
81c10ffbf5
commit
92e92d3ef2
@@ -23,7 +23,7 @@ ThreadRecordInterface::ThreadRecordInterface(SmsDB *smsDb, ContactsDB *contactsD
|
||||
|
||||
bool ThreadRecordInterface::Add(const ThreadRecord &rec)
|
||||
{
|
||||
auto ret = smsDB->threads.add(ThreadsTableRow{{.ID = rec.ID},
|
||||
auto ret = smsDB->threads.add(ThreadsTableRow{Record(rec.ID),
|
||||
.date = rec.date,
|
||||
.msgCount = rec.msgCount,
|
||||
.unreadMsgCount = rec.unreadMsgCount,
|
||||
@@ -48,7 +48,7 @@ bool ThreadRecordInterface::RemoveByID(uint32_t id)
|
||||
|
||||
bool ThreadRecordInterface::Update(const ThreadRecord &rec)
|
||||
{
|
||||
return smsDB->threads.update(ThreadsTableRow{{.ID = rec.ID},
|
||||
return smsDB->threads.update(ThreadsTableRow{Record(rec.ID),
|
||||
.date = rec.date,
|
||||
.msgCount = rec.msgCount,
|
||||
.unreadMsgCount = rec.unreadMsgCount,
|
||||
|
||||
Reference in New Issue
Block a user