You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Igor Galić (JIRA)" <ji...@apache.org> on 2013/07/04 11:47:20 UTC
[jira] [Commented] (TS-2002) clang complaint in Main.cc:
incompatible operand types ('char' and 'char *')
[ https://issues.apache.org/jira/browse/TS-2002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13699886#comment-13699886 ]
Igor Galić commented on TS-2002:
--------------------------------
proposed patch:
{code}
diff --git proxy/Main.cc proxy/Main.cc
index ac74a4d..beede0b 100644
--- proxy/Main.cc
+++ proxy/Main.cc
@@ -1097,7 +1097,7 @@ struct RegressionCont: public Continuation
printf("Regression waiting for the cache to be ready... %d\n", ++waits);
return EVENT_CONT;
}
- char *rt = (char *) (regression_test[0] == '\0' ? '\0' : regression_test);
+ char *rt = (char *) (regression_test[0] == 0 ? "" : regression_test);
if (!initialized && RegressionTest::run(rt) == REGRESSION_TEST_INPROGRESS) {
initialized = 1;
return EVENT_CONT;
{code}
> clang complaint in Main.cc: incompatible operand types ('char' and 'char *')
> -----------------------------------------------------------------------------
>
> Key: TS-2002
> URL: https://issues.apache.org/jira/browse/TS-2002
> Project: Traffic Server
> Issue Type: Bug
> Reporter: Igor Galić
>
> {code}
> CXX Main.o
> Main.cc:1100:53: error: incompatible operand types ('char' and 'char *')
> char *rt = (char *) (regression_test[0] == '\0' ? '\0' : regression_test);
> ^ ~~~~ ~~~~~~~~~~~~~~~
> 1 error generated.
> make[2]: *** [Main.o] Error 1
> make[2]: Leaving directory `/home/igalic/src/asf/trafficserver/proxy'
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira