From 0f4d34493ef973a5aa70d3422cffd2c77068821f Mon Sep 17 00:00:00 2001 From: Yash Tibrewal Date: Fri, 6 Oct 2017 13:10:20 -0700 Subject: extern C for gpr_default_log in android --- src/core/lib/support/log_android.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/lib/support/log_android.cc b/src/core/lib/support/log_android.cc index 6f1cec51f1..ca66eb15a1 100644 --- a/src/core/lib/support/log_android.cc +++ b/src/core/lib/support/log_android.cc @@ -50,7 +50,7 @@ void gpr_log(const char *file, int line, gpr_log_severity severity, free(message); } -void gpr_default_log(gpr_log_func_args *args) { +extern "C" void gpr_default_log(gpr_log_func_args *args) { char *final_slash; const char *display_file; char *output = NULL; -- cgit v1.2.3 From 54b8cfc9060f8a219a224d7e4dbb98d4763d1857 Mon Sep 17 00:00:00 2001 From: Yash Tibrewal Date: Fri, 6 Oct 2017 13:15:52 -0700 Subject: Missing extern C --- src/core/lib/support/log_android.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/lib/support/log_android.cc b/src/core/lib/support/log_android.cc index ca66eb15a1..fab37bf841 100644 --- a/src/core/lib/support/log_android.cc +++ b/src/core/lib/support/log_android.cc @@ -39,7 +39,7 @@ static android_LogPriority severity_to_log_priority(gpr_log_severity severity) { return ANDROID_LOG_DEFAULT; } -void gpr_log(const char *file, int line, gpr_log_severity severity, +extern "C" void gpr_log(const char *file, int line, gpr_log_severity severity, const char *format, ...) { char *message = NULL; va_list args; -- cgit v1.2.3 From 598cbd882d5fc8caf7e72e8186c1896d4af1824c Mon Sep 17 00:00:00 2001 From: Yash Tibrewal Date: Fri, 6 Oct 2017 13:20:29 -0700 Subject: Clang tidy --- src/core/lib/support/log_android.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/lib/support/log_android.cc b/src/core/lib/support/log_android.cc index fab37bf841..fed535d0d2 100644 --- a/src/core/lib/support/log_android.cc +++ b/src/core/lib/support/log_android.cc @@ -40,7 +40,7 @@ static android_LogPriority severity_to_log_priority(gpr_log_severity severity) { } extern "C" void gpr_log(const char *file, int line, gpr_log_severity severity, - const char *format, ...) { + const char *format, ...) { char *message = NULL; va_list args; va_start(args, format); -- cgit v1.2.3