mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 07:00:13 +01:00
libnm-glib-aux: fix build error with GCC 15
Fix the following error with GCC 15:
../src/libnm-glib-aux/nm-shared-utils.c:35:42: error: initializer-string for array of 'char' is too long [-Werror=unterminated-string-initialization]
35 | const char _nm_hexchar_table_lower[16] = "0123456789abcdef";
| ^~~~~~~~~~~~~~~~~~
../src/libnm-glib-aux/nm-shared-utils.c:36:42: error: initializer-string for array of 'char' is too long [-Werror=unterminated-string-initialization]
36 | const char _nm_hexchar_table_upper[16] = "0123456789ABCDEF";
| ^~~~~~~~~~~~~~~~~~
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2116
This commit is contained in:
parent
49e7db7047
commit
17f274d5b4
2 changed files with 4 additions and 4 deletions
|
|
@ -32,8 +32,8 @@ G_STATIC_ASSERT(G_STRUCT_OFFSET(NMUtilsNamedValue, value_ptr) == sizeof(const ch
|
|||
|
||||
/*****************************************************************************/
|
||||
|
||||
const char _nm_hexchar_table_lower[16] = "0123456789abcdef";
|
||||
const char _nm_hexchar_table_upper[16] = "0123456789ABCDEF";
|
||||
const char _nm_hexchar_table_lower[] = "0123456789abcdef";
|
||||
const char _nm_hexchar_table_upper[] = "0123456789ABCDEF";
|
||||
|
||||
const void *const _NM_PTRARRAY_EMPTY[1] = {NULL};
|
||||
|
||||
|
|
|
|||
|
|
@ -2640,8 +2640,8 @@ int nm_utils_getpagesize(void);
|
|||
|
||||
/*****************************************************************************/
|
||||
|
||||
extern const char _nm_hexchar_table_lower[16];
|
||||
extern const char _nm_hexchar_table_upper[16];
|
||||
extern const char _nm_hexchar_table_lower[];
|
||||
extern const char _nm_hexchar_table_upper[];
|
||||
|
||||
static inline char
|
||||
nm_hexchar(int x, gboolean upper_case)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue