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: releases/gcc-12.4.0~474 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90f44ef2a9419a550e954be4146b7d0dcd33c8cf;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. (cherry picked from commit 549ea1487a534d0eef6a424075264ba542514c3d) --- diff --git a/gcc/config/avr/avr.cc b/gcc/config/avr/avr.cc index b5f6c2362b68..1905ac5790c9 100644 --- a/gcc/config/avr/avr.cc +++ b/gcc/config/avr/avr.cc @@ -10259,8 +10259,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