bugpng++, a C++ wrapper for libpng - Bugs: bug #45041, Compiler warnings: useless...

 
 

bug #45041: Compiler warnings: useless qualifiers in packed_pixel.hpp

Submitted by:  None
Submitted on:  Thu 07 May 2015 09:08:00 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sun 25 Oct 2015 02:49:28 PM UTC, comment #1:

Thanks, this is clearly an oversight. I think these meant to be method qualifiers, but given that they are static, it doesn't make any sense. Removed.

Alexander Shulgin <alexshulgin>
Project Administrator
Thu 07 May 2015 09:08:00 AM UTC, original submission:

In packed_pixel.hpp the const qualifiers for get_bit_depth() and get_bit_mask() have no effect. Some compilers warn the users about this fact – which might confuse them. Removing the const keyword solves the problem.

Anonymous

 

(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 alexshulgin (Posted a comment)
  •  

    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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 25 Oct 2015 02:49:28 PM UTCalexshulginStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1