[Github-comments] [geany/geany] Update HACKING for best practices (C99) (#1282)

elextr notifications at xxxxx
Sat Oct 29 12:03:43 UTC 2016


elextr commented on this pull request.



> @@ -200,8 +200,18 @@ Coding
   moment, we want to keep the minimum requirement for GTK at 2.24 (of
   course, you can use the GTK_CHECK_VERSION macro to protect code using
   later versions).
-* Variables should be declared before statements. You can use
-  gcc's -Wdeclaration-after-statement to warn about this.
+* Variables should be declared (and initialized) as close as practical

I suggest it says "(and initialized in the declaration)"

-- 
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/1282#pullrequestreview-6346509
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20161029/6fb21e94/attachment.html>


More information about the Github-comments mailing list