[Github-comments] [geany/geany] Fix new GCC warnings (#1725)

elextr notifications at xxxxx
Thu Dec 21 08:40:24 UTC 2017


elextr commented on this pull request.



> @@ -2256,7 +2256,7 @@ static void build_load_menu_grp(GKeyFile *config, GeanyBuildCommand **dst, gint
 	gsize prefixlen; /* NOTE prefixlen used in macros above */
 	GeanyBuildCommand *dstcmd;
 	gchar *key;
-	static gchar cmdbuf[3] = "  ";
+	static gchar cmdbuf[4] = "  ";

Then the initialisation would need to be extended, it seems GCC is convinced that a unsigned between 0-99 can be three bytes long?????

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1725#discussion_r158221266
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20171221/64cefb69/attachment-0001.html>


More information about the Github-comments mailing list