bugGNU troff - Bugs: bug #57687, preproc/refer/label.ypp:...


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

Submitted by:  Bjarni Ingi Gislason <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 Planned Release:  None

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Tue 28 Jan 2020 10:06:12 PM UTC, original submission:  

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,

Bjarni Ingi Gislason <bjarniig>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by bjarniig (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.5