From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by sourceware.org (Postfix) with ESMTPS id 49F3B3856080 for ; Thu, 26 May 2022 00:35:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 49F3B3856080 Received: by mail-pf1-x42f.google.com with SMTP id y199so375775pfb.9 for ; Wed, 25 May 2022 17:35:13 -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:from:date:message-id:subject:to; bh=MDHlOV7CwC28a5fj98wn4L6YFj3M17U/98d/6vWHFZM=; b=ChU9dsWcSVgDxPrheqDe4ICaSkO1BWGCcIGJ5e0xIWTKyovnrz6zyqF+GH+Pxks2dP uuYITtCqU82orN3902PanvUF9tCAxOZDGDwg4VSmKVCpP5AH2dtYheg/3KVzmXONXaNg WtuEjyPlbvJKL7NiGN8sdqCLi3sgZ3JpysDd3BlPpuAzF9Z1YajvNLy0bAbrnPtCNt9n JefphXUGx8RoR4vB4I1BZ3s96XgfYhgIooObDIyRoKJZZo0V6L786je3v7tNEbqZ9CxN owsUCza36azWO1aTrh7tFbYuzvcqtzcYk58xjedPM02gu7OXw/NoEd9eBxApro41gVqd vEfw== X-Gm-Message-State: AOAM5326EDR5491Gz9eyyLdBgQmNK4+bY2d/hSes25rgIg3FWfj82gge KZKiW/f/oKjvZXeVMK5RGFqjdIIFBykolS7MD3fvvGE= X-Google-Smtp-Source: ABdhPJxswJU98jSL4wrz2xeJdItPk1yH1jF8uDJKnAXk7UBXIlIAOr1+UzS+O/ywd48XtKizuIIDX4RqXRTMJhvQH54= X-Received: by 2002:a63:2c3:0:b0:3f4:e639:fec9 with SMTP id 186-20020a6302c3000000b003f4e639fec9mr30622323pgc.478.1653525312037; Wed, 25 May 2022 17:35:12 -0700 (PDT) MIME-Version: 1.0 From: disquisitiones Date: Thu, 26 May 2022 02:35:01 +0200 Message-ID: Subject: Modify the gcc exit code for warning To: gcc-help@gcc.gnu.org X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, 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 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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, 26 May 2022 00:35:15 -0000 Hi, 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? Many thanks, Luca