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 - SDL_blendmode.h pedantic error
Summary: SDL_blendmode.h pedantic error
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.0
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-15 18:11 UTC by Daniel
Modified: 2011-02-15 21:58 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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