Pacify some clang compile warnings

This commit is contained in:
Pasi Kallinen
2015-11-21 23:40:06 +02:00
parent 90302ce86d
commit 7063488621
7 changed files with 56 additions and 45 deletions

View File

@@ -23,46 +23,46 @@ struct icp {
char iclass; /* item class */
};
const struct icp mkobjprobs[] = { { 10, WEAPON_CLASS },
{ 10, ARMOR_CLASS },
{ 20, FOOD_CLASS },
{ 8, TOOL_CLASS },
{ 8, GEM_CLASS },
{ 16, POTION_CLASS },
{ 16, SCROLL_CLASS },
{ 4, SPBOOK_CLASS },
{ 4, WAND_CLASS },
{ 3, RING_CLASS },
{ 1, AMULET_CLASS } };
static const struct icp mkobjprobs[] = { { 10, WEAPON_CLASS },
{ 10, ARMOR_CLASS },
{ 20, FOOD_CLASS },
{ 8, TOOL_CLASS },
{ 8, GEM_CLASS },
{ 16, POTION_CLASS },
{ 16, SCROLL_CLASS },
{ 4, SPBOOK_CLASS },
{ 4, WAND_CLASS },
{ 3, RING_CLASS },
{ 1, AMULET_CLASS } };
const struct icp boxiprobs[] = { { 18, GEM_CLASS },
{ 15, FOOD_CLASS },
{ 18, POTION_CLASS },
{ 18, SCROLL_CLASS },
{ 12, SPBOOK_CLASS },
{ 7, COIN_CLASS },
{ 6, WAND_CLASS },
{ 5, RING_CLASS },
{ 1, AMULET_CLASS } };
static const struct icp boxiprobs[] = { { 18, GEM_CLASS },
{ 15, FOOD_CLASS },
{ 18, POTION_CLASS },
{ 18, SCROLL_CLASS },
{ 12, SPBOOK_CLASS },
{ 7, COIN_CLASS },
{ 6, WAND_CLASS },
{ 5, RING_CLASS },
{ 1, AMULET_CLASS } };
const struct icp rogueprobs[] = { { 12, WEAPON_CLASS },
{ 12, ARMOR_CLASS },
{ 22, FOOD_CLASS },
{ 22, POTION_CLASS },
{ 22, SCROLL_CLASS },
{ 5, WAND_CLASS },
{ 5, RING_CLASS } };
static const struct icp rogueprobs[] = { { 12, WEAPON_CLASS },
{ 12, ARMOR_CLASS },
{ 22, FOOD_CLASS },
{ 22, POTION_CLASS },
{ 22, SCROLL_CLASS },
{ 5, WAND_CLASS },
{ 5, RING_CLASS } };
const struct icp hellprobs[] = { { 20, WEAPON_CLASS },
{ 20, ARMOR_CLASS },
{ 16, FOOD_CLASS },
{ 12, TOOL_CLASS },
{ 10, GEM_CLASS },
{ 1, POTION_CLASS },
{ 1, SCROLL_CLASS },
{ 8, WAND_CLASS },
{ 8, RING_CLASS },
{ 4, AMULET_CLASS } };
static const struct icp hellprobs[] = { { 20, WEAPON_CLASS },
{ 20, ARMOR_CLASS },
{ 16, FOOD_CLASS },
{ 12, TOOL_CLASS },
{ 10, GEM_CLASS },
{ 1, POTION_CLASS },
{ 1, SCROLL_CLASS },
{ 8, WAND_CLASS },
{ 8, RING_CLASS },
{ 4, AMULET_CLASS } };
struct oextra *
newoextra()