bugGnash - The GNU Flash player - Bugs: bug #23148, error: invalid conversion from...

 
 

bug #23148: error: invalid conversion from 'const char*' to 'char*' in cvs build

Submitted by:  Ivan Kalvachev <iive>
Submitted on:  Sat 03 May 2008 11:59:43 AM UTC  
 
Category: buildSeverity: 3 - Normal
Release: NoneStatus: Fixed
Privacy: PublicAssigned to: Markus Gothe <nihilus>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 05 May 2008 11:25:23 PM UTC, comment #4:

I fixed this earlier today, never noticed this was a known bug.

Markus Gothe <nihilus>
Project MemberIn charge of this item.
Mon 05 May 2008 09:37:48 PM UTC, comment #3:

Casts should also have been fixed.

Benjamin Wolsey <bwy>
Project Member
Mon 05 May 2008 09:36:42 AM UTC, comment #2:

I've fixed the initialization warning, but not the others (I don't have a build with SDL at the moment). Indeed const char* seems a bit unnecessary.

Benjamin Wolsey <bwy>
Project Member
Sat 03 May 2008 07:29:39 PM UTC, comment #1:

Nelson, I think we should take std::string refs ;)
Btw, could you please also fix the warnings there ?

Sandro Santilli <strk>
Project Member
Sat 03 May 2008 11:59:43 AM UTC, original submission:

The error is from building todays (3 May 2008) cvs.
The attached patch allows compilation to continue.

Player.h: In constructor 'gnash::Player::Player()':
Player.h:233: warning: 'gnash::Player::_audio_dump' will be initialized after
Player.h:231: warning: 'bool gnash::Player::_startFullscreen'
Player.cpp:73: warning: when initialized here
Player.cpp: In member function 'void gnash::Player::init_sound()':
Player.cpp:175: error: invalid conversion from 'const char' to 'char'
Player.cpp:175: error: initializing argument 1 of 'gnash::media::sound_handler* gnash::media::create_sound_handler_sdl(char*)'
make[3]: *** [kde_gnash-Player.o] Error 1
make[3]: Leaving directory `gnash-0.8.2.99_CVS20080503_0229/gui'
make[2]: *** [all] Error 2

Ivan Kalvachev <iive>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #15595:  gnash_constchar.patch added by iive (2KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by nihilus (Posted a comment)
  • -unavailable- added by bwy (Posted a comment)
  • -unavailable- added by strk (Posted a comment)
  • -unavailable- added by iive (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 05 May 2008 11:25:23 PM UTCnihilusStatusReady For Test=>Fixed
      Assigned tobwy=>nihilus
      Open/ClosedOpen=>Closed
    Mon 05 May 2008 09:37:48 PM UTCbwyStatusNone=>Ready For Test
      Assigned tonelsonrn=>bwy
    Sat 03 May 2008 07:29:39 PM UTCstrkAssigned toNone=>nelsonrn
    Sat 03 May 2008 11:59:44 AM UTCiiveAttached File-=>Added gnash_constchar.patch, #15595

    Back to the top


    Powered by Savane 3.1-cleanup1