[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 13/13: [refer]: Quieten compiler warning.
From: |
G. Branden Robinson |
Subject: |
[groff] 13/13: [refer]: Quieten compiler warning. |
Date: |
Sat, 16 Apr 2022 04:37:34 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 363fc31eebf42a61f6eeddb423492321d0f70544
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Apr 15 15:26:50 2022 +1000
[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.
---
ChangeLog | 9 +++++++++
src/preproc/refer/label.ypp | 10 +++++++---
2 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 0d3d8ee2..d16d0d3e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2022-04-15 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ * 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>.
+
2022-04-15 G. Branden Robinson <g.branden.robinson@gmail.com>
* src/preproc/grn/hdb.cpp (DBGetType): Lower fatal diagnostics
diff --git a/src/preproc/refer/label.ypp b/src/preproc/refer/label.ypp
index 89876b68..f5210d57 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:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 13/13: [refer]: Quieten compiler warning.,
G. Branden Robinson <=