File tuxtype-1.5.17-no-return-in-nonvoid-function.patch of Package tuxtype
Index: tuxtype_w_fonts-1.5.17/tuxtype/alphabet.c
===================================================================
--- tuxtype_w_fonts-1.5.17.orig/tuxtype/alphabet.c
+++ tuxtype_w_fonts-1.5.17/tuxtype/alphabet.c
@@ -1104,6 +1104,8 @@ static int add_char(wchar_t uc)
LOG ("Unable to add unicode - list at max capacity");
return -1;
}
+ // We never want to get here...
+ return -1;
}
Index: tuxtype_w_fonts-1.5.17/tuxtype/loaders.c
===================================================================
--- tuxtype_w_fonts-1.5.17.orig/tuxtype/loaders.c
+++ tuxtype_w_fonts-1.5.17/tuxtype/loaders.c
@@ -419,6 +419,8 @@ Mix_Chunk* LoadSound(const char* datafil
tempChunk = Mix_LoadWAV(fn);
return tempChunk;
}
+ // we never want to get here
+ return tempChunk;
}
@@ -447,4 +449,6 @@ Mix_Music* LoadMusic(const char* datafil
temp_music = Mix_LoadMUS(fn);
return temp_music;
}
+ // we never want to get here
+ return temp_music;
}