[geany/geany] bf2879: Adjust 'fall through' comments to be recognized by GCC

Matthew Brush git-noreply at xxxxx
Fri Jan 12 22:09:35 UTC 2018


Branch:      refs/heads/master
Author:      Matthew Brush <matt at geany.org>
Committer:   Matthew Brush <matt at geany.org>
Date:        Thu, 21 Dec 2017 01:22:51 UTC
Commit:      bf28794635735d97ba60d458f964bdb46972f9e5
             https://github.com/geany/geany/commit/bf28794635735d97ba60d458f964bdb46972f9e5

Log Message:
-----------
Adjust 'fall through' comments to be recognized by GCC

As per the documentation[0], GCC will silence these warnings when
the comments are formatted correctly.

[0]: https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html


Modified Paths:
--------------
    ctags/parsers/fortran.c

Modified: ctags/parsers/fortran.c
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -673,7 +673,7 @@ static int getFixedFormChar (void)
 					Column = 6;
 					break;
 				}
-				/* fall through to next case */
+				/* fall through */
 			case LTYPE_CONTINUATION:
 				Column = 5;
 				do
@@ -1001,7 +1001,7 @@ static void readToken (tokenInfo *const token)
 				skipLine ();
 				Column = 0;
 			}
-			/* fall through to newline case */
+			/* fall through */
 		case '\n':
 			token->type = TOKEN_STATEMENT_END;
 			if (FreeSourceForm)



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list