]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Flag enums need to be marked up with flag_enum
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 7 Feb 2023 21:27:46 +0000 (15:27 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 7 Feb 2023 21:27:46 +0000 (15:27 -0600)
Else the compiler gets annoyed when you try and assign flags or'd together

src/protocols/tacacs/tacacs.h

index becbb532d5523d662f54aabf3e4ffd07b7a06693..56147bc14801f9d83d0255c8f09c54c253823e96 100644 (file)
@@ -68,7 +68,7 @@ typedef enum {
        FR_TAC_PLUS_MAX                         = 0x04
 } fr_tacacs_type_t;
 
-typedef enum {
+typedef enum CC_HINT(flag_enum) {
        FR_TAC_PLUS_FLAGS_NONE                  = 0x00,
        FR_TAC_PLUS_UNENCRYPTED_FLAG            = 0x01,
        FR_TAC_PLUS_SINGLE_CONNECT_FLAG         = 0x04