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

 
 

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

Submitter:  Bjarni Ingi Gislason <bjarniig>
Submitted:  Tue 28 Jan 2020 10:06:12 PM UTC
   
 
Category:  Preprocessor refer Severity:  2 - Minor
Item Group:  Lint Status:  Duplicate
Privacy:  Public Assigned to:  gbranden
Open/Closed:  Closed Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 31 May 2022 04:53:32 AM UTC, comment #2: 

This issue is a duplicate of one of several items reported in bug #43569.

It was resolved last month.

G. Branden Robinson <gbranden>
Group administrator
Thu 05 Aug 2021 08:08:01 AM UTC, comment #1: 

I don't get this diagnostic with the compiler version and options I'm using; demoting to minor severity.

Also, the Austin Group had a knock-down, drag-out over yacc-related symbol visibility within the past few months.  Maybe that should be consulted before deciding what the right solution is.

https://austingroupbugs.net/view.php?id=1388

G. Branden Robinson <gbranden>
Group administrator
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,
"label.cpp".


Bjarni Ingi Gislason <bjarniig>

 

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

Attach Files:
   
   
Comment:
   

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 gbranden (Posted a comment)
  • -email is unavailable- added by bjarniig (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-05-31 gbranden Item GroupBuild/Installation Lint
        StatusNone Duplicate
        Assigned toNone gbranden
        Open/ClosedOpen Closed
    2022-01-11 gbranden Item GroupWarning/Suspicious behaviour Build/Installation
    2021-08-05 gbranden Severity3 - Normal 2 - Minor

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code