bugGNU Gengetopt - Bugs: bug #37084, warning: declaration of 'error'...

 
 

bug #37084: warning: declaration of 'error' shadows a global declaration [-Wshadow]

Submitted by:  Sebastian Freundt <hroptatyr>
Submitted on:  Mon 13 Aug 2012 10:35:39 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Lorenzo Bettini <bettini>
Originator Name: Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 02 Nov 2012 03:09:16 PM UTC, comment #1:

This is fixed in this commit

http://git.savannah.gnu.org/cgit/gengetopt.git/commit/?h=devel&id=8271287687e93131e11b311f5be0833701e56285

of branch 'devel'

Lorenzo Bettini <bettini>
Project AdministratorIn charge of this item.
Mon 13 Aug 2012 10:35:39 AM UTC, original submission:

In generated code we find a lot of `int error = 0' and other assignments to error.

error however is a GNU function, present in glibc since at least version 2.9, and present in gnulib for portability, see
http://www.gnu.org/software/libc/manual/html_node/Error-Messages.html

Suggested fix: rename `error' variable to `errcode' or `error_occurred'.

Sebastian Freundt <hroptatyr>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bettini (Posted a comment)
  • -unavailable- added by hroptatyr (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 02 Nov 2012 03:09:16 PM UTCbettiniStatusNone=>Fixed
      Assigned toNone=>bettini
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1