[mythtv-commits] Ticket #10523: g++ C++ standards compliance patch

MythTV noreply at mythtv.org
Wed Mar 28 18:18:27 UTC 2012


#10523: g++ C++ standards compliance patch
-------------------------------------------------+-------------------------
     Reporter:  Gary Buhrmaster                  |      Owner:  danielk
  <gary.buhrmaster@…>                            |     Status:  new
         Type:  Patch - Feature                  |  Milestone:  unknown
     Priority:  minor                            |    Version:  Master Head
    Component:  MythTV - DVB                     |   Keywords:
     Severity:  low                              |
Ticket locked:  0                                |
-------------------------------------------------+-------------------------
 (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?)

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/10523>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list