From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by sourceware.org (Postfix) with ESMTPS id 688693858D37 for ; Thu, 3 Feb 2022 20:49:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 688693858D37 Received: by mail-wr1-x436.google.com with SMTP id l25so7309685wrb.13 for ; Thu, 03 Feb 2022 12:49:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JSY31fRi+THKpVEdDcOcOtv3ZHXQS8Kd6lyU379NV34=; b=i9bF34GlmkyNf7aaeik0A4IgW1giTm1MwuUAjk52xiF3Hfiqm2LmfjbYkxFVQDlGs2 cDWjf/+wlIMi//XqBlvIB7eesU2hDIiTabbNCfINHsYSdNq9mmPNAxMGkYFjvPAJ43Iv 25o+lMW7dbTegDUZrpCMkxS9pvaLHfaTR0S5rpBx+Wf+XhKDYnLTmlaAQbh6kdjN1/Bv zrQaw0pOlwXIIZBDzVR6kqcpbZ0yyR/WPb1eRnaWofarqVJ3qY0h/ZESYUKbEmnQ8U8e SvneZVEuMC1/y/vUmWi6i+rpBobgVPdF7Gq1IkEMdyGNiiIADZPu55CD9tDH5UkCXqEe XrWA== X-Gm-Message-State: AOAM533y6fCDB6xKUIUx5nIIjoSpSoTubZCM3E9XR0ij8gsry3EyBgjA QCGhU3aVHck2LwWUDn+afpw60p/0g15hrImNWFU= X-Google-Smtp-Source: ABdhPJwqY6BCWxwvsuJzkZLzH0KxhtFTgjVr78l99OudB46mpFbmcQrLgN+9YL5RjeGaQmSRJLlVQLT2o1fqvUe3doo= X-Received: by 2002:a5d:548a:: with SMTP id h10mr21855201wrv.221.1643921363284; Thu, 03 Feb 2022 12:49:23 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Thu, 3 Feb 2022 20:49:12 +0000 Message-ID: Subject: Re: Doubts regarding the issue (bug 62181) To: Krishna Narayanan Cc: gcc-help Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Feb 2022 20:49:25 -0000 On Thu, 3 Feb 2022 at 18:46, Krishna Narayanan via Gcc-help wrote: > > Respected Sir/Madam, > I have been working on an issue (bug 62181) [C/C++] Expected new warning: > "adding 'char' to a string does not append to the string" > [-Wstring-plus-int].This is asking for a warning being added to gcc for > such a case.Not using concat and indexing which were mentioned earlier as a > solution to the warning I tried the example given in https://godbolt.org/ > and was trying different permutations of addresses and pointers in clang > and gcc (trunk), I am not sure but I tried '-w' in compiler flags and it > worked fine for both clang and gcc ,it did not show any warning. -w means disables all warnings, so of course you didn't get any warnings when you use it! See the GCC manual. https://gcc.gnu.org/onlinedocs/gcc/Option-Summary.html