Skip to content

Commit 3595c2b

Browse files
authored
Merge pull request FRRouting#18794 from opensourcerouting/gcc15-warnings
*: some gcc warnings clean up
2 parents 9ebaaba + bdd5ede commit 3595c2b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

bgpd/bgp_ecommunity.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ static const char *ecommunity_gettoken(const char *str, void *eval_ptr,
577577
char buf[INET_ADDRSTRLEN + 1];
578578
struct ecommunity_val *eval = (struct ecommunity_val *)eval_ptr;
579579
uint64_t tmp_as = 0;
580-
static const char str_color[5] = "color";
580+
static const char *str_color = "color";
581581
const char *ptr_color;
582582
bool val_color_set = false;
583583

lib/printf/vfprintf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ vbprintfrr(struct fbuf *cb_in, const char *fmt0, va_list ap)
181181
struct fbuf cb_copy, *cb;
182182
struct fmt_outpos *opos;
183183

184-
static const char xdigs_lower[16] = "0123456789abcdef";
185-
static const char xdigs_upper[16] = "0123456789ABCDEF";
184+
static const char *xdigs_lower = "0123456789abcdef";
185+
static const char *xdigs_upper = "0123456789ABCDEF";
186186

187187
/* BEWARE, these `goto error' on error. */
188188
#define PRINT(ptr, len) { \

ospfd/ospf_zebra.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,7 @@ static int ospf_zebra_read_route(ZAPI_CALLBACK_ARGS)
12801280
{
12811281
struct zapi_route api;
12821282
struct prefix_ipv4 p;
1283-
struct prefix pgen;
1283+
struct prefix pgen = {};
12841284
unsigned long ifindex;
12851285
struct in_addr nexthop;
12861286
struct external_info *ei;

0 commit comments

Comments
 (0)