From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: * X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=1.1 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,LIST_MIRROR_RECEIVED,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by dcvr.yhbt.net (Postfix) with ESMTP id 564871F852 for ; Wed, 2 Feb 2022 17:29:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234756AbiBBR3j (ORCPT ); Wed, 2 Feb 2022 12:29:39 -0500 Received: from bsmtp3.bon.at ([213.33.87.17]:53817 "EHLO bsmtp3.bon.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229588AbiBBR3i (ORCPT ); Wed, 2 Feb 2022 12:29:38 -0500 Received: from [192.168.0.98] (unknown [93.83.142.38]) by bsmtp3.bon.at (Postfix) with ESMTPSA id 4JpphH41Glz5tlD; Wed, 2 Feb 2022 18:29:35 +0100 (CET) Message-ID: Date: Wed, 2 Feb 2022 18:29:35 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v4 1/4] i18n: factorize more 'incompatible options' messages Content-Language: en-US To: =?UTF-8?Q?Jean-No=c3=abl_Avila?= Cc: git@vger.kernel.org, =?UTF-8?Q?Jean-No=c3=abl_Avila_via_GitGitGadget?= , Phillip Wood , =?UTF-8?Q?Jean-No=c3=abl_Avila?= , Junio C Hamano References: <2eac2ef502b86d0c15513c8d0e69928ce2140b1f.1643666870.git.gitgitgadget@gmail.com> <29731fdd-ca0c-a3f6-84c7-7429ccef5673@gmail.com> From: Johannes Sixt In-Reply-To: <29731fdd-ca0c-a3f6-84c7-7429ccef5673@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Am 02.02.22 um 17:05 schrieb Jean-Noël Avila: > With "static", we ensure that either it is inlined or there is a static > function (in which case, this bit of code will be duplicated across > compilation units). That is the plan. Since the function is declared static, the compiler has much more freedom to inline it because it knows that the function is inaccessible outside the current compilation unit. Besides, if you grep for 'inline', you will only find 'static inline' (except in some borrowed code). static inline it is, or you pick the macro or out-of-line solution. -- Hannes