Skip to content

Conversation

robvdveer
Copy link
Collaborator

(related to issue #2)

/** This should not trigger an undefined warning */

define XYZ typedef enum bla;

/** This should */
typedef enum { One, Two } xyz;

/** This should not */
#ifndef NS_ENUM
#define NS_ENUM(_type, _name) enum _name : _type _name; enum _name : _type
#endif

@tomaz
Copy link
Owner

tomaz commented Jul 29, 2013

Cool, merging right away and updating v2.2 tag to point to newest code.

tomaz added a commit that referenced this pull request Jul 29, 2013
Fix unexpected warning on typedef enum without { }. Addresses #2.
@tomaz tomaz merged commit ba1083e into tomaz:master Jul 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants