diff options
author | G. Branden Robinson <g.branden.robinson@gmail.com> | 2022-04-15 15:26:50 +1000 |
---|---|---|
committer | G. Branden Robinson <g.branden.robinson@gmail.com> | 2022-04-16 16:59:38 +1000 |
commit | 363fc31eebf42a61f6eeddb423492321d0f70544 (patch) | |
tree | dcefe1dd2578f5092ff85036da51f86a0b6b0e4d /src/preproc/refer | |
parent | d247763cfe9e71fd453ac828d35ab8b207c962fd (diff) | |
download | groff-git-363fc31eebf42a61f6eeddb423492321d0f70544.tar.gz |
[refer]: Quieten compiler warning.
* src/preproc/refer/label.ypp: Drop redundant declaration of `yyparse`.
Both byacc 20140715 and GNU Bison 3.3.2 supply the the function
prototype themselves. Addresses "-Wredundant-decls" warning from GCC.
Fixes <https://savannah.gnu.org/bugs/?43569>.
Also update editor aid comments; drop old-style Emacs file-local
variable setting.
Diffstat (limited to 'src/preproc/refer')
-rw-r--r-- | src/preproc/refer/label.ypp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/preproc/refer/label.ypp b/src/preproc/refer/label.ypp index 89876b682..f5210d573 100644 --- a/src/preproc/refer/label.ypp +++ b/src/preproc/refer/label.ypp @@ -1,5 +1,4 @@ -/* -*- C++ -*- - Copyright (C) 1989-2020 Free Software Foundation, Inc. +/* Copyright (C) 1989-2020 Free Software Foundation, Inc. Written by James Clark (jjc@jclark.com) This file is part of groff. @@ -26,7 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ int yylex(); void yyerror(const char *); -int yyparse(); static const char *format_serial(char c, int n); @@ -1189,3 +1187,9 @@ int reference::get_nauthors() const } return nauthors; } + +// Local Variables: +// fill-column: 72 +// mode: C++ +// End: +// vim: set cindent noexpandtab shiftwidth=2 textwidth=72: |