Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca243f2f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove VNDK warning." into oc-dev

parents 64639fd7 81626e48
Loading
Loading
Loading
Loading
+27 −1
Original line number Diff line number Diff line
@@ -16,6 +16,32 @@
*/
#ifndef _LIBS_CUTIL_LOG_H
#define _LIBS_CUTIL_LOG_H
#warning "Deprecated: don't include cutils/log.h, use either android/log.h or log/log.h"

/* We do not know if developer wanted log/log.h or subset android/log.h */
#include <log/log.h>

#if defined(__GNUC__)
#if defined( __clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic warning "-W#warnings"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpedantic"
#elif (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR > 9))
#pragma GCC diagnostic push
#pragma GCC diagnostic warning "-W#warnings"
#else
#pragma GCC diagnostic push
#pragma GCC diagnostic warning "-Wcpp"
#endif
#endif

#warning "Deprecated: don't include cutils/log.h, use either android/log.h or log/log.h"

#if defined(__GNUC__)
#if defined( __clang__)
#pragma clang diagnostic pop
#endif
#pragma GCC diagnostic pop
#endif

#endif /* _LIBS_CUTIL_LOG_H */