Bug 2256620 - libtrash: Fix int-conversion errors for C compatibility
Summary: libtrash: Fix int-conversion errors for C compatibility
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: libtrash
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Florian Weimer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PortingToModernCNoUpstream
TreeView+ depends on / blocked
 
Reported: 2024-01-03 12:06 UTC by Florian Weimer
Modified: 2024-01-03 12:20 UTC (History)
3 users (show)

Fixed In Version: libtrash-3.7-5.fc40
Clone Of:
Environment:
Last Closed: 2024-01-03 12:14:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
libtrash-c99.patch (1.62 KB, patch)
2024-01-03 12:07 UTC, Florian Weimer
no flags Details | Diff

Description Florian Weimer 2024-01-03 12:06:35 UTC
The REAL_FUNCTION macro contains ?: operators that have inconsistent types (FILE * and int) in their operands, resulting in a compiler error with GCC 14.

Filing  this here because upstream does not seem to use a bug  tracker.

Reproducible: Always

Comment 1 Florian Weimer 2024-01-03 12:07:52 UTC
Created attachment 2006958 [details]
libtrash-c99.patch

Comment 2 Florian Weimer 2024-01-03 12:18:15 UTC
I've mailed the patch to upstream, too.

Comment 3 Lukáš Zaoral 2024-01-03 12:20:44 UTC
Thank you for the patch, Florian!


Note You need to log in before you can comment on or make changes to this bug.