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


Groups > gnu.groff.bug > #1697 > unrolled thread

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

Started byBjarni Ingi Gislason <INVALID.NOREPLY@gnu.org>
First post2020-01-28 17:06 -0500
Last post2020-01-28 17:06 -0500
Articles 1 — 1 participant

Back to article view | Back to gnu.groff.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

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

FromBjarni Ingi Gislason <INVALID.NOREPLY@gnu.org>
Date2020-01-28 17:06 -0500
Subject[bug #57687] preproc/refer/label.ypp: unnecessary declaration of "yyparse()"
Message-ID<mailman.266.1580249178.2185.bug-groff@gnu.org>
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/

[toc] | [standalone]


Back to top | Article view | gnu.groff.bug


csiph-web