]> granicus.if.org Git - graphviz/commitdiff
macOS: Fix GVGraph.m warning with Xcode 10
authorBrendan Shanks <brendan@bslabs.net>
Tue, 11 Dec 2018 20:44:37 +0000 (12:44 -0800)
committerBrendan Shanks <brendan@bslabs.net>
Tue, 18 Dec 2018 02:54:32 +0000 (18:54 -0800)
macosx/GVGraph.m

index eb24db4d54a40118580cffa45a834232bbe9a861..ac2c80314ee3b3c66b7de813f4e7b52033dc1592 100644 (file)
@@ -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) {