We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1124

Summary: SDL_blendmode.h pedantic error
Product: SDL Reporter: Daniel <daniel350>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.0   
Hardware: x86_64   
OS: Linux   

Description Daniel 2011-02-15 18:11:46 UTC
This is very frustrating when trying to get your program to compile using the -pedantic flag.

/**
 *  \brief The blend mode used in SDL_RenderCopy() and drawing operations.
 */
typedef enum
{
    SDL_BLENDMODE_NONE = 0x00000000,     /**< No blending */
    SDL_BLENDMODE_BLEND = 0x00000001,    /**< dst = (src * A) + (dst * (1-A)) */
    SDL_BLENDMODE_ADD = 0x00000002,      /**< dst = (src * A) + dst */
} SDL_BlendMode;

Ref: "./include/SDL/SDL_blendmode.h:47: warning: comma at end of enumerator list"

Please remove it so it is as follows:

SDL_BLENDMODE_ADD = 0x00000002      /**< dst = (src * A) + dst */


Therefore it won't throw a warning error :).
Comment 1 Sam Lantinga 2011-02-15 19:08:24 UTC
This is already fixed in the latest snapshot.

Thanks!
Comment 2 Daniel 2011-02-15 20:16:17 UTC
./include/SDL/SDL_log.h:95: warning: comma at end of enumerator list

Another one in latest build
Comment 3 Sam Lantinga 2011-02-15 21:58:22 UTC
Fixed, thanks!
http://hg.libsdl.org/SDL/rev/d4074e52e739