Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.groff.bug > #1697

[bug #57687] preproc/refer/label.ypp: unnecessary declaration of "yyparse()"

Path csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Bjarni Ingi Gislason <INVALID.NOREPLY@gnu.org>
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 <mailman.266.1580249178.2185.bug-groff@gnu.org> (permalink)
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 <bjarniig@rhi.hi.is>, 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" <bug-groff.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-groff>, <mailto:bug-groff-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-groff>
List-Post <mailto:bug-groff@gnu.org>
List-Help <mailto:bug-groff-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-groff>, <mailto:bug-groff-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <20200128-220612.sv93188.87994@savannah.gnu.org>
Xref csiph.com gnu.groff.bug:1697

Show key headers only | View raw


URL:
  <https://savannah.gnu.org/bugs/?57687>

                 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:

  <https://savannah.gnu.org/bugs/?57687>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/

Back to gnu.groff.bug | Previous | Next | Find similar


Thread

[bug #57687] preproc/refer/label.ypp: unnecessary declaration of "yyparse()" Bjarni Ingi Gislason <INVALID.NOREPLY@gnu.org> - 2020-01-28 17:06 -0500

csiph-web