mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-21 08:28:53 +02:00
Ensure to generate a flags GType for empty Flags enums
When the flags enum only has the default NONE = 0 entry, glib-mkenums creates an enum type for it, not a flags type. Add an annotation to the enum to ensure the correct GType is created. Bug #667938.
This commit is contained in:
@@ -218,7 +218,7 @@ typedef enum {
|
|||||||
*
|
*
|
||||||
* Flags used when mounting a mount.
|
* Flags used when mounting a mount.
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum /*< flags >*/ {
|
||||||
G_MOUNT_MOUNT_NONE = 0
|
G_MOUNT_MOUNT_NONE = 0
|
||||||
} GMountMountFlags;
|
} GMountMountFlags;
|
||||||
|
|
||||||
@@ -244,7 +244,7 @@ typedef enum {
|
|||||||
*
|
*
|
||||||
* Since: 2.22
|
* Since: 2.22
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum /*< flags >*/ {
|
||||||
G_DRIVE_START_NONE = 0
|
G_DRIVE_START_NONE = 0
|
||||||
} GDriveStartFlags;
|
} GDriveStartFlags;
|
||||||
|
|
||||||
@@ -668,7 +668,7 @@ typedef enum {
|
|||||||
*
|
*
|
||||||
* Since: 2.32
|
* Since: 2.32
|
||||||
**/
|
**/
|
||||||
typedef enum {
|
typedef enum /*< flags >*/ {
|
||||||
G_RESOURCE_LOOKUP_FLAGS_NONE = 0,
|
G_RESOURCE_LOOKUP_FLAGS_NONE = 0,
|
||||||
} GResourceLookupFlags;
|
} GResourceLookupFlags;
|
||||||
|
|
||||||
@@ -1515,7 +1515,6 @@ typedef enum
|
|||||||
} GDBusObjectManagerClientFlags;
|
} GDBusObjectManagerClientFlags;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
<<<<<<< HEAD
|
|
||||||
* GTlsDatabaseVerifyFlags:
|
* GTlsDatabaseVerifyFlags:
|
||||||
* @G_TLS_DATABASE_VERIFY_NONE: No verification flags
|
* @G_TLS_DATABASE_VERIFY_NONE: No verification flags
|
||||||
*
|
*
|
||||||
@@ -1523,7 +1522,7 @@ typedef enum
|
|||||||
*
|
*
|
||||||
* Since: 2.30
|
* Since: 2.30
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum /*< flags >*/ {
|
||||||
G_TLS_DATABASE_VERIFY_NONE = 0
|
G_TLS_DATABASE_VERIFY_NONE = 0
|
||||||
} GTlsDatabaseVerifyFlags;
|
} GTlsDatabaseVerifyFlags;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user