Path: csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Bjarni Ingi Gislason Newsgroups: gnu.groff.bug Subject: [bug #57687] preproc/refer/label.ypp: unnecessary declaration of "yyparse()" Date: Tue, 28 Jan 2020 17:06:13 -0500 (EST) Lines: 64 Approved: bug-groff@gnu.org Message-ID: References: <20200128-220612.sv93188.87994@savannah.gnu.org> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain;charset=UTF-8 X-Trace: usenet.stanford.edu 1580249178 12541 209.51.188.17 (28 Jan 2020 22:06:18 GMT) X-Complaints-To: action@cs.stanford.edu To: Bjarni Ingi Gislason , bug-groff@gnu.org Envelope-to: bug-groff@gnu.org X-PHP-Originating-Script: 1001:sendmail.php X-Savane-Server: savannah.gnu.org:443 [209.51.188.79] X-Savane-Project: groff X-Savane-Tracker: bugs X-Savane-Item-ID: 57687 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 X-Apparently-From: 31.209.211.187 (Savane authenticated user bjarniig) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.79 X-BeenThere: bug-groff@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Bug reports for the GNU version of nroff, troff et al" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <20200128-220612.sv93188.87994@savannah.gnu.org> Xref: csiph.com gnu.groff.bug:1697 URL: Summary: preproc/refer/label.ypp: unnecessary declaration of "yyparse()" Project: GNU troff Submitted by: bjarniig Submitted on: Tue 28 Jan 2020 10:06:12 PM UTC Category: Preprocessor refer Severity: 3 - Normal Item Group: Warning/Suspicious behaviour Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Planned Release: None _______________________________________________________ Details: Subject: preproc/refer/label.ypp: unnecessary declaration of "yyparse()" Warnings from the compiler (PWD=build): CXX src/preproc/refer/refer-label.o src/preproc/refer/label.cpp:340:5: warning: redundant redeclaration of 'int yyparse()' in same scope [-Wredundant-decls] 340 | int yyparse (void); | ^~~~~~~ ../src/preproc/refer/label.ypp:29:5: note: previous declaration of 'int yyparse()' 29 | int yyparse(); | ^~~~~~~ The used "yacc" is "bison (GNU Bison) 3.4.2" "yyparse()" in "label.ypp" is only used, not defined. Its declaration can be removed (or commented out with an explanation) without visible effects on the compilation. It gets its declaration and definition in the created file, "label.cpp". _______________________________________________________ Reply to this item at: _______________________________________________ Message sent via Savannah https://savannah.gnu.org/