Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Probably keep gcc5 happy with format string literals.
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=778039
GCC is probably being over-picky here since they were perfectly good
NSString literals.
  • Loading branch information
cim-- committed Aug 9, 2015
1 parent 720eb4b commit 8083596
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/Core/Entities/PlayerEntityLegacyScriptEngine.m
Expand Up @@ -2204,7 +2204,7 @@ - (void) setFuelLeak:(NSString *)value
{
[self playFuelLeak];
[UNIVERSE addMessage:DESC(@"danger-fuel-leak") forCount:6];
OOLog(kOOLogNoteFuelLeak, @"FUEL LEAK activated!");
OOLog(kOOLogNoteFuelLeak, @"%@", @"FUEL LEAK activated!");
}
}

Expand Down Expand Up @@ -2389,13 +2389,13 @@ - (OOPlanetEntity *) addMoon: (NSString *)moonKey
- (void) debugOn
{
OOLogSetDisplayMessagesInClass(kOOLogDebugOnMetaClass, YES);
OOLog(kOOLogDebugOnOff, @"SCRIPT debug messages ON");
OOLog(kOOLogDebugOnOff, @"%@", @"SCRIPT debug messages ON");
}


- (void) debugOff
{
OOLog(kOOLogDebugOnOff, @"SCRIPT debug messages OFF");
OOLog(kOOLogDebugOnOff, @"%@", @"SCRIPT debug messages OFF");
OOLogSetDisplayMessagesInClass(kOOLogDebugOnMetaClass, NO);
}

Expand Down Expand Up @@ -2946,7 +2946,7 @@ - (void) setGalacticHyperspaceFixedCoordsTo:(NSString *)galacticHyperspaceFixedC
NSArray *coord_vals = ScanTokensFromString(galacticHyperspaceFixedCoordsString);
if ([coord_vals count] < 2) // Will be 0 if string is nil
{
OOLog(@"player.setGalacticHyperspaceFixedCoords.invalidInput",
OOLog(@"player.setGalacticHyperspaceFixedCoords.invalidInput", @"%@",
@"setGalacticHyperspaceFixedCoords: called with bad specifier. Defaulting to Oolite standard.");
galacticHyperspaceFixedCoords.x = galacticHyperspaceFixedCoords.y = 0x60;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Entities/PlayerEntityLoadSave.m
Expand Up @@ -191,7 +191,7 @@ - (void) quicksavePlayer
if (!path) path = [[gameView gameController] playerFileToLoad];
if (!path)
{
OOLog(@"quickSave.failed.noName", @"ERROR no file name returned by [[gameView gameController] playerFileToLoad]");
OOLog(@"quickSave.failed.noName", @"%@", @"ERROR no file name returned by [[gameView gameController] playerFileToLoad]");
[NSException raise:@"OoliteGameNotSavedException"
format:@"ERROR no file name returned by [[gameView gameController] playerFileToLoad]"];
}
Expand Down

0 comments on commit 8083596

Please sign in to comment.