New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SWORD2: fixed compiler warning with gcc 8.2 #1335

Merged
merged 1 commit into from Sep 13, 2018

Conversation

Projects
None yet
2 participants
@mgerhardy
Contributor

mgerhardy commented Sep 13, 2018

engines/sword2/screen.cpp: In member function ‘void Sword2::Screen::rollCredits()’:
engines/sword2/screen.cpp:1121:102: warning: cast from type ‘const char*’ to type ‘byte*’ {aka ‘unsigned char*’} casts away qualifiers [-Wcast-qual]
      creditsLines[i]->sprite = _vm->_fontRenderer->makeTextSprite((byte *)creditsLines[i]->str.c_str(), 600, 14, _vm->_speechFontId, 0);
SWORD2: fixed compiler warning with gcc 8.2
engines/sword2/screen.cpp: In member function ‘void Sword2::Screen::rollCredits()’:
engines/sword2/screen.cpp:1121:102: warning: cast from type ‘const char*’ to type ‘byte*’ {aka ‘unsigned char*’} casts away qualifiers [-Wcast-qual]
      creditsLines[i]->sprite = _vm->_fontRenderer->makeTextSprite((byte *)creditsLines[i]->str.c_str(), 600, 14, _vm->_speechFontId, 0);
@digitall

This comment has been minimized.

Show comment
Hide comment
@digitall

digitall Sep 13, 2018

Member

Commit looks pretty self explanatory and limited to SWORD2 engine. Commit messages comply to our project standards. Will merge.

@mgerhardy : Thanks for the fix.

Member

digitall commented Sep 13, 2018

Commit looks pretty self explanatory and limited to SWORD2 engine. Commit messages comply to our project standards. Will merge.

@mgerhardy : Thanks for the fix.

@digitall digitall merged commit 5b9531f into scummvm:master Sep 13, 2018

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment