From: Arran Cudbard-Bell Date: Tue, 7 Feb 2023 21:27:46 +0000 (-0600) Subject: Flag enums need to be marked up with flag_enum X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd773ecf6e381d6337e19e7c52a9bdc392897366;p=thirdparty%2Ffreeradius-server.git Flag enums need to be marked up with flag_enum Else the compiler gets annoyed when you try and assign flags or'd together --- diff --git a/src/protocols/tacacs/tacacs.h b/src/protocols/tacacs/tacacs.h index becbb532d55..56147bc1480 100644 --- a/src/protocols/tacacs/tacacs.h +++ b/src/protocols/tacacs/tacacs.h @@ -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