Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Removes deprecation build warning #31

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

orionnoir
Copy link

Changing the return type form char* to const char* removes build
warnings: “NatPunchthroughClient.cpp:800:11: Conversion from string
literal to 'char *' is deprecated”

Only tested on Mac Xcode 5.1.1 and a gcc compile running on Android
(targeting 2.3 API level 10)

Changing the return type form char* to const char* removes a build
warnings: “NatPunchthroughClient.cpp:800:11: Conversion from string
literal to 'char *' is deprecated”

Only tested on Mac Xcode 5.1.1 and a gcc compile running on Android
(targeting 2.3 API level 10)
@orionnoir
Copy link
Author

This suffers from limited testing. I haven't tried in linux or windows yet (just iOS and android)

@larku
Copy link

larku commented Mar 2, 2015

I can verify this works on Android and Win32 (mingw).

@larku
Copy link

larku commented Mar 2, 2015

Note: duplicate of #22

@Luke1410
Copy link

Luke1410 commented Aug 2, 2017

Duplicates #22 - #22 integrated in https://github.com/SLikeSoft/SLikeNet (incorporated in SLikeNet 0.1.0).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants