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-13.3.0~565 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=928c204030fe6c8856b76fd3d6f3583902389ad3;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 2d859540414d..b50fe3b6bf53 100644 --- a/gcc/config/avr/avr.cc +++ b/gcc/config/avr/avr.cc @@ -10261,8 +10261,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