From: Brendan Shanks Date: Tue, 11 Dec 2018 20:44:37 +0000 (-0800) Subject: macOS: Fix GVGraph.m warning with Xcode 10 X-Git-Tag: 2.42.0~16^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c47149d7e7e83c7fe6a0867a0cd6f82f3dbf127e;p=graphviz macOS: Fix GVGraph.m warning with Xcode 10 --- diff --git a/macosx/GVGraph.m b/macosx/GVGraph.m index eb24db4d5..ac2c80314 100644 --- a/macosx/GVGraph.m +++ b/macosx/GVGraph.m @@ -45,7 +45,7 @@ extern char *gvplugin_list(GVC_t * gvc, api_t api, const char *str); char *pluginList = gvplugin_list(_graphContext, api, ":"); char *restOfPlugins; char *nextPlugin; - for (restOfPlugins = pluginList; nextPlugin = strsep(&restOfPlugins, " ");) { + for (restOfPlugins = pluginList; (nextPlugin = strsep(&restOfPlugins, " "));) { if (*nextPlugin) { char *lastColon = strrchr(nextPlugin, ':'); if (lastColon) {