- fixed compilation warnings reported by GCC and Clang
src/common/menu/menudef.cpp:785:19: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare] src/playsim/p_pspr.cpp:178:3: warning: field 'processPending' will be initialized after field 'HAlign' [-Wreorder]
This commit is contained in:
parent
841a9b3017
commit
112640e6c0
2 changed files with 7 additions and 7 deletions
|
|
@ -769,8 +769,8 @@ static int GetInsertIndex(FScanner& sc, DMenuDescriptor* desc)
|
|||
// Find an existing menu item to use as insertion point
|
||||
sc.MustGetString();
|
||||
|
||||
auto n = desc->mItems.Size();
|
||||
for (unsigned int i = 0; i < n; i++)
|
||||
int n = desc->mItems.Size();
|
||||
for (int i = 0; i < n; i++)
|
||||
{
|
||||
auto item = desc->mItems[i];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue