Fix gcc build errors & warnings

This commit is contained in:
Alexander 'z33ky' Hirsch
2021-04-25 22:00:08 +02:00
parent 5eda2f692f
commit dddcf642aa
13 changed files with 91 additions and 70 deletions

View File

@@ -366,6 +366,7 @@ namespace ResponseRules
I Insert( const char *pName, const T &element )
{
extern const char *ResponseCopyString( const char *in );
char const *pString = ResponseCopyString( pName );
unsigned int hash = RR_HASH( pString );
m_ReverseMap.Insert( hash, pString );
@@ -374,6 +375,7 @@ namespace ResponseRules
I Insert( const char *pName )
{
extern const char *ResponseCopyString( const char *in );
char const *pString = ResponseCopyString( pName );
unsigned int hash = RR_HASH( pString );
m_ReverseMap.Insert( hash, pString );
@@ -388,7 +390,7 @@ namespace ResponseRules
const char *GetElementName( I i )
{
int k = Key( i );
int k = this->Key( i );
int slot = m_ReverseMap.Find( k );
if ( slot == m_ReverseMap.InvalidIndex() )
return "";
@@ -397,7 +399,7 @@ namespace ResponseRules
const char *GetElementName( I i ) const
{
int k = Key( i );
int k = this->Key( i );
int slot = m_ReverseMap.Find( k );
if ( slot == m_ReverseMap.InvalidIndex() )
return "";