Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide write_demangled_frame() for Android build #48414

Merged
merged 1 commit into from
Apr 7, 2021

Conversation

BrettDong
Copy link
Member

Summary

None

Purpose of change

There is an "unused function" compile warning on Android build as mentioned by @ZhilkinSerg in #47486:

20:11:27 [arm64-v8a] Compile++      : main <= debug.cpp

20:11:27 /var/lib/jenkins/workspace/Cataclysm-Android/android/app/jni/src/../../../../src/debug.cpp:831:13: warning: unused function 'write_demangled_frame' [-Wunused-function]
20:11:27 static void write_demangled_frame( std::ostream &out, const char *frame )
20:11:27             ^
20:11:27 1 warning generated.

Describe the solution

Add macro checks to hide this function for Android.

Testing

Wait for CI tests to complete.

@BrettDong BrettDong added [C++] Changes (can be) made in C++. Previously named `Code` Code: Build Issues regarding different builds and build environments OS: Android Issues related to Android operating system labels Apr 7, 2021
@BrettDong BrettDong marked this pull request as ready for review April 7, 2021 19:47
@ZhilkinSerg ZhilkinSerg merged commit 50fff6a into CleverRaven:master Apr 7, 2021
@BrettDong BrettDong deleted the android branch April 10, 2021 19:54
scarf005 added a commit to scarf005/Cataclysm-BN that referenced this pull request Aug 30, 2023
from: CleverRaven/Cataclysm-DDA#48414

Co-authored-by: Brett Dong <brett.browning.dong@gmail.com>
scarf005 added a commit to scarf005/Cataclysm-BN that referenced this pull request Aug 31, 2023
from: CleverRaven/Cataclysm-DDA#48414

Co-authored-by: Brett Dong <brett.browning.dong@gmail.com>
scarf005 added a commit to scarf005/Cataclysm-BN that referenced this pull request Sep 1, 2023
from: CleverRaven/Cataclysm-DDA#48414

Co-authored-by: Brett Dong <brett.browning.dong@gmail.com>
Firestorm01X2 pushed a commit to cataclysmbnteam/Cataclysm-BN that referenced this pull request Sep 3, 2023
* chore: unindent common messages

was very confusing with `CMAKE_BUILD_TYPE`

* fix(port): BSD macro in src/debug.cpp

from: CleverRaven/Cataclysm-DDA#47440

Co-authored-by: Brett Dong <brett.browning.dong@gmail.com>

* fix(port): Implement C++ symbol demangling on macOS

from: CleverRaven/Cataclysm-DDA#47486

Co-authored-by: Brett Dong <brett.browning.dong@gmail.com>

* refactor(port):  Extract symbol demangling to a separate function

from: CleverRaven/Cataclysm-DDA#47517

Co-authored-by: Brett Dong <brett.browning.dong@gmail.com>

* feat(port):  Demangle symbol names on MinGW

from: CleverRaven/Cataclysm-DDA#47517

Co-authored-by: Brett Dong <brett.browning.dong@gmail.com>

* feat(port):  Implement C++ symbol demangling on Linux

from: CleverRaven/Cataclysm-DDA#47621

Co-authored-by: Brett Dong <brett.browning.dong@gmail.com>

* feat(port):  Implement C++ symbol demangling on FreeBSD and OpenBSD

from: CleverRaven/Cataclysm-DDA#48152

Co-authored-by: Brett Dong <brett.browning.dong@gmail.com>

* fix(port):  C++ symbol demangling on cross-compile MinGW

from: CleverRaven/Cataclysm-DDA#48220

Co-authored-by: Brett Dong <brett.browning.dong@gmail.com>

* fix(port): memory leak in demangle()

from: CleverRaven/Cataclysm-DDA#48230

Co-authored-by: Brett Dong <brett.browning.dong@gmail.com>

* feat(port):
Backtrace on Android

from: CleverRaven/Cataclysm-DDA#48371

Co-authored-by: Brett Dong <brett.browning.dong@gmail.com>

* chore(port): hide write_demangled_frame() for Android build

from: CleverRaven/Cataclysm-DDA#48414

Co-authored-by: Brett Dong <brett.browning.dong@gmail.com>

* feat(port):
demangle RTTI type names in debug messages

from: CleverRaven/Cataclysm-DDA#52633

Co-authored-by: Brett Dong <brett.browning.dong@gmail.com>

* perf(port): optimize null stream in DebugLog

from: CleverRaven/Cataclysm-DDA#55156

Co-authored-by: Brett Dong <brett.browning.dong@gmail.com>

* fix(port): reported version of newer Windows 10 releases

from: CleverRaven/Cataclysm-DDA#55506

Co-authored-by: xuv <18742123+xuvatilavv@users.noreply.github.com>

* feat(port): include build number in windows version report

CleverRaven/Cataclysm-DDA#55646

Co-authored-by: xuv <18742123+xuvatilavv@users.noreply.github.com>

* feat(port): get the actual static image base of modules

from: CleverRaven/Cataclysm-DDA#55782

Co-authored-by: Qrox <qrox@sina.com>

* ci: fix version typo

* feat(port): support libbacktrace on linux

from: CleverRaven/Cataclysm-DDA#59020

Co-authored-by: John Bytheway <jbytheway@gmail.com>

* build(cmake): support custom linker

context:
https://stackoverflow.com//questions/1867745/cmake-use-a-custom-linker#answer-66730019

* docs(cmake): linker, backtrace and libbacktrace

---------

Co-authored-by: Brett Dong <brett.browning.dong@gmail.com>
Co-authored-by: xuv <18742123+xuvatilavv@users.noreply.github.com>
Co-authored-by: Qrox <qrox@sina.com>
Co-authored-by: John Bytheway <jbytheway@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Build Issues regarding different builds and build environments OS: Android Issues related to Android operating system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants