From: Georg-Johann Lay Date: Fri, 12 Jan 2024 13:42:45 +0000 (+0100) Subject: AVR: Work around "sequence of 3 consecutive punctuation characters" warning. X-Git-Tag: basepoints/gcc-15~2949 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=549ea1487a534d0eef6a424075264ba542514c3d;p=thirdparty%2Fgcc.git AVR: Work around "sequence of 3 consecutive punctuation characters" warning. gcc/ * config/avr/avr.cc (avr_handle_addr_attribute): Move "..." from format string to %s argument. --- diff --git a/gcc/config/avr/avr.cc b/gcc/config/avr/avr.cc index 0cdd035fa1a1..4bc3cf929de9 100644 --- a/gcc/config/avr/avr.cc +++ b/gcc/config/avr/avr.cc @@ -10388,8 +10388,8 @@ avr_handle_addr_attribute (tree *node, tree name, tree args, && (!tree_fits_shwi_p (arg) || ! IN_RANGE (TREE_INT_CST_LOW (arg), io_start, io_end))) { - warning_at (loc, OPT_Wattributes, "%qE attribute address out of " - "range 0x%x...0x%x", name, (int) io_start, (int) io_end); + warning_at (loc, OPT_Wattributes, "%qE attribute address out of range" + " 0x%x%s0x%x", name, (int) io_start, "...", (int) io_end); *no_add = true; } else