Merge pull request #1559 from ailin-nemui/bitwarnings

make bitfields unsigned
This commit is contained in:
ailin-nemui 2025-04-27 12:41:57 +00:00 committed by GitHub
commit b14bc4a2fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 7 deletions

View File

@ -6,7 +6,7 @@
#define IRSSI_GLOBAL_CONFIG "irssi.conf" /* config file name in /etc/ */
#define IRSSI_HOME_CONFIG "config" /* config file name in ~/.irssi/ */
#define IRSSI_ABI_VERSION 55
#define IRSSI_ABI_VERSION 56
#define DEFAULT_SERVER_ADD_PORT 6667
#define DEFAULT_SERVER_ADD_TLS_PORT 6697

View File

@ -25,7 +25,7 @@ typedef struct {
int cmd_queue_speed;
int max_query_chans;
int starttls;
int no_cap : 1;
unsigned int no_cap : 1;
} IRC_SERVER_SETUP_REC;
void irc_servers_setup_init(void);

View File

@ -43,7 +43,6 @@
#define IS_IRC_SERVER_CONNECT(conn) \
(IRC_SERVER_CONNECT(conn) ? TRUE : FALSE)
/* clang-format off */
/* all strings should be either NULL or dynamically allocated */
/* address and nick are mandatory, rest are optional */
struct _IRC_SERVER_CONNECT_REC {
@ -62,11 +61,10 @@ struct _IRC_SERVER_CONNECT_REC {
int max_query_chans;
int max_kicks, max_msgs, max_modes, max_whois;
int disallow_starttls:1;
int starttls:1;
int no_cap:1;
unsigned int disallow_starttls : 1;
unsigned int starttls : 1;
unsigned int no_cap : 1;
};
/* clang-format on */
#define STRUCT_SERVER_CONNECT_REC IRC_SERVER_CONNECT_REC
struct _IRC_SERVER_REC {