bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Bjarni Ingi Gislason
Subject: [bug #57687] preproc/refer/label.ypp: unnecessary declaration of "yyparse()"
Date: Tue, 28 Jan 2020 17:06:13 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]