mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-19 11:23:16 +08:00
fix: "value computed is not used" warning in messages.cpp
This commit is contained in:
@@ -85,13 +85,15 @@ void LoadMessageFile(const char * fname) {
|
||||
/* First remove characters 10 and 13 from the line */
|
||||
char * parser=linein;
|
||||
char * writer=linein;
|
||||
|
||||
while (*parser) {
|
||||
if (*parser!=10 && *parser!=13) {
|
||||
*writer++=*parser;
|
||||
}
|
||||
*parser++;
|
||||
if (*parser != 10 && *parser != 13)
|
||||
*writer++ = *parser;
|
||||
|
||||
parser++;
|
||||
}
|
||||
*writer=0;
|
||||
|
||||
/* New string name */
|
||||
if (linein[0]==':') {
|
||||
string[0]=0;
|
||||
|
Reference in New Issue
Block a user