Bug 416775 - trojita: test_Imap_BodyParts.cpp fails to compile with qt 5.13 gcc 9.2
Summary: trojita: test_Imap_BodyParts.cpp fails to compile with qt 5.13 gcc 9.2
Status: RESOLVED FIXED
Alias: None
Product: trojita
Classification: Applications
Component: Other (show other bugs)
Version: 0.7
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Trojita default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-26 02:23 UTC by Turtle
Modified: 2022-02-02 20:59 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch (606 bytes, patch)
2020-01-26 02:23 UTC, Turtle
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Turtle 2020-01-26 02:23:58 UTC
Created attachment 125421 [details]
patch

SUMMARY
A redefinition of ‘char* QTest::toString(const T&) in test_Imap_BodyParts.cpp

When compiling trojita-0.7/tests/Imap/test_Imap_BodyParts.cpp:56:7: 
I get the following error: 
redefinition of ‘char* QTest::toString(const T&) [with T = QModelIndex]’
STEPS TO REPRODUCE
1. Install gcc 9.2, qt 5.13.2, kde
2. download trojita
3. Compile will fail

(Gentoo) Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.17.4
KDE Frameworks Version: 5.64.0
Qt Version: 5.13.2

ADDITIONAL INFORMATION
Commenting out the redefinition fixes the compile failure.
Not sure if it causes any other issues.
Thank you