From c47149d7e7e83c7fe6a0867a0cd6f82f3dbf127e Mon Sep 17 00:00:00 2001 From: Brendan Shanks Date: Tue, 11 Dec 2018 12:44:37 -0800 Subject: [PATCH] macOS: Fix GVGraph.m warning with Xcode 10 --- macosx/GVGraph.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.40.0