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

Fix -Werror=format-security for the Android logger #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jolting
Copy link

@jolting jolting commented Feb 16, 2016

This fixes the following error:

jni/OpenNI2/ThirdParty/PSCommon/XnLib/Source/XnLogAndroidWriter.cpp: In member function 'virtual void XnLogAndroidWriter::WriteEntry(const XnLogEntry*)':
jni/OpenNI2/ThirdParty/PSCommon/XnLib/Source/XnLogAndroidWriter.cpp:61:94: error: format not a string literal and no format arguments [-Werror=format-security]
__android_log_print(OpenNISeverityToAndroid(pEntry->nSeverity), "OpenNI", pEntry->strMessage);
^

This fixes the following error:


jni/OpenNI2/ThirdParty/PSCommon/XnLib/Source/XnLogAndroidWriter.cpp: In member function 'virtual void XnLogAndroidWriter::WriteEntry(const XnLogEntry*)':
jni/OpenNI2/ThirdParty/PSCommon/XnLib/Source/XnLogAndroidWriter.cpp:61:94: error: format not a string literal and no format arguments [-Werror=format-security]
  __android_log_print(OpenNISeverityToAndroid(pEntry->nSeverity), "OpenNI", pEntry->strMessage);
                                                                                              ^
clalancette added a commit to clalancette/OpenNI2 that referenced this pull request Nov 13, 2020
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