Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#10523 closed Patch - Feature (fixed)

g++ C++ standards compliance patch

Reported by: Gary Buhrmaster <gary.buhrmaster@…> Owned by: danielk
Priority: minor Milestone: 0.26
Component: MythTV - DVB Version: Master Head
Severity: low Keywords:
Cc: Ticket locked: no


(Part 1 of 2, since the patches are in different components)

Feature patch for g++ C++0x/C++11 standards compliance

When compiling with g++ and specifing -std=c++0x the compilation fails in dvbci.cpp due to an error of the form:

error: narrowing conversion of .... inside { }

relating to type conversion.

Patch attached which uses an explicit cast in the macro to resolve the narrowing error message and allows the compilation to proceed.

Since MythTV does not currently specify use of the new C++ standards, this patch is not necessary at this time, but may useful be at some future date (when gcc defaults to the C++11 standards?)

Attachments (1)

c++standard_1.patch (828 bytes) - added by Gary Buhrmaster <gary.buhrmaster@…> 9 years ago.

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by Gary Buhrmaster <gary.buhrmaster@…>

Attachment: c++standard_1.patch added

comment:1 Changed 8 years ago by Gary Buhrmaster <gary.buhrmaster@…>

Resolution: fixed
Status: newclosed

In 17a73edb5b0416663fa8c621459e5c2a970893d2/mythtv:

Fixes #10523. Make cast explicit for C++11 happiness.

Signed-off-by: Daniel Kristjansson <danielk@…>

comment:2 Changed 8 years ago by Raymond Wagner

Milestone: unknown0.26
Note: See TracTickets for help on using tickets.