From 4f032332c9e9bd692fc6addee7653fe4e76279c4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 15 May 2014 00:42:09 +0200 Subject: [PATCH] Work around apparent clang bug. Clang seems to be confused by "tm" being the name both of a local variable and a struct tm from the standard header, included indirectly in the doxygen branch from java.cxx via "swig.h" and . Just removing the unnecessary cast helps to clear the confusion. --- Source/Modules/java.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Modules/java.cxx b/Source/Modules/java.cxx index 18e6cb71c..a2687ab6e 100644 --- a/Source/Modules/java.cxx +++ b/Source/Modules/java.cxx @@ -2556,7 +2556,7 @@ public: } generateThrowsClause(n, function_code); - Printf(function_code, " %s\n\n", tm ? (const String *) tm : empty_string); + Printf(function_code, " %s\n\n", tm ? tm : empty_string); Printv(proxy_class_code, function_code, NIL); Delete(pre_code); @@ -3032,7 +3032,7 @@ public: } generateThrowsClause(n, function_code); - Printf(function_code, " %s\n\n", tm ? (const String *) tm : empty_string); + Printf(function_code, " %s\n\n", tm ? tm : empty_string); Printv(module_class_code, function_code, NIL); Delete(pre_code);