From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-xb2f.google.com (mail-yb1-xb2f.google.com [IPv6:2607:f8b0:4864:20::b2f]) by sourceware.org (Postfix) with ESMTPS id 9638D39730DC for ; Fri, 27 May 2022 11:46:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9638D39730DC Received: by mail-yb1-xb2f.google.com with SMTP id s14so7454883ybc.10 for ; Fri, 27 May 2022 04:46:33 -0700 (PDT) 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; bh=g6mZ6KbkG1bZdvFfmgEEoX1nHuCosvHqTgBI3or2Ukc=; b=jRua/irDn6OMVATdoSoUTNdgx4T9uz3IDD2ZkdijrHOaZLqvqtQH2iKimbg8ZPz1bx UQa+BSOT2Boyl1/1ujfc5wDEonF2XCbPobdj780XVnd4ovyl7M0O+/7/96wnNnACCnIZ Afr3aUrHL0bk8wxjQtUpysPBGgF6Zcr/dEfSFEWFSmNj8VgzvlRT/sQhE/GJNFvpuvzU Bnx1GRJrBQEb+AVQguO44gCwCSRFE7UMI+b6oMYnEPOfsO3wU22GUkN0qZ8wjLwKVEzx SqVQW/gN64iHjv0bOuzixGpzLd1AiJAVixgw5jfyrImcONcanKU5Hgto0YgIFaEW+NvH ep9g== X-Gm-Message-State: AOAM531y3ZW6ys4tmZ2sPKAbtVJZskn0JMvYV2T3iETdKNw1Hgyol/r0 HDz6D9rzvkS06z8uWYiSm4vLpMVvblcjk1JMddVAM4eW X-Google-Smtp-Source: ABdhPJxCknZpQ3SuIeLRk/27OqxCAXPaXTammoyNeUB6fuXE/CoNm8YH+ulTO7p8qeCZV9l8PULA+XJ/OzZWRwP2ElE= X-Received: by 2002:a25:50d:0:b0:64a:422c:65ec with SMTP id 13-20020a25050d000000b0064a422c65ecmr6397768ybf.409.1653651993007; Fri, 27 May 2022 04:46:33 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Stefan Ring Date: Fri, 27 May 2022 13:46:22 +0200 Message-ID: Subject: Re: Modify the gcc exit code for warning To: gcc-help Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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: Fri, 27 May 2022 11:46:34 -0000 On Thu, May 26, 2022 at 2:35 AM disquisitiones via Gcc-help wrote: > > I would like to modify the exit code returned by gcc in case of warning > from 0 to some other value, but I'm not familiar with the gcc large source > code base. > > Could you provide an hint to which is the file in the gcc source code that > I should modify for modifying the exit value? Try to find out where -Werror gets handled. This will lead you to the correct places.