| Summary: | SDL_blendmode.h pedantic error | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Daniel <daniel350> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 2.0.0 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
This is already fixed in the latest snapshot. Thanks! ./include/SDL/SDL_log.h:95: warning: comma at end of enumerator list Another one in latest build Fixed, thanks! http://hg.libsdl.org/SDL/rev/d4074e52e739 |
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 :).