Skip to content

Fix Item being shadowed#6

Open
ChillerDragon wants to merge 1 commit intoPointer31:infclass-based-19.5-2from
ChillerDragon:pr_pointer31_item_shadow
Open

Fix Item being shadowed#6
ChillerDragon wants to merge 1 commit intoPointer31:infclass-based-19.5-2from
ChillerDragon:pr_pointer31_item_shadow

Conversation

@ChillerDragon
Copy link

/home/chiller/Desktop/git/ddnet_client/src/game/client/gameclient.cpp: In member function ‘void CGameClient::ProcessEvents()’:
/home/chiller/Desktop/git/ddnet_client/src/game/client/gameclient.cpp:1451:66: warning: declaration of ‘Item’ shadows a previous local [-Wshadow]
 1451 |                                         const IClient::CSnapItem Item = Ent.m_Item;
      |                                                                  ^~~~
/home/chiller/Desktop/git/ddnet_client/src/game/client/gameclient.cpp:1397:42: note: shadowed declaration is here
 1397 |                 const IClient::CSnapItem Item = Client()->SnapGetItem(SnapType, Index);
      |                                          ^~~~
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-nullability-completeness’ may have been intended to silence earlier diagnostics

```
/home/chiller/Desktop/git/ddnet_client/src/game/client/gameclient.cpp: In member function ‘void CGameClient::ProcessEvents()’:
/home/chiller/Desktop/git/ddnet_client/src/game/client/gameclient.cpp:1451:66: warning: declaration of ‘Item’ shadows a previous local [-Wshadow]
 1451 |                                         const IClient::CSnapItem Item = Ent.m_Item;
      |                                                                  ^~~~
/home/chiller/Desktop/git/ddnet_client/src/game/client/gameclient.cpp:1397:42: note: shadowed declaration is here
 1397 |                 const IClient::CSnapItem Item = Client()->SnapGetItem(SnapType, Index);
      |                                          ^~~~
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-nullability-completeness’ may have been intended to silence earlier diagnostics
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant