From owner-freebsd-hackers@freebsd.org Tue May 22 21:39:06 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F2FF0EB02A2 for ; Tue, 22 May 2018 21:39:05 +0000 (UTC) (envelope-from munro@penski.net) Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com [IPv6:2a00:1450:400c:c09::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6A9666A13B for ; Tue, 22 May 2018 21:39:05 +0000 (UTC) (envelope-from munro@penski.net) Received: by mail-wm0-x22f.google.com with SMTP id j4-v6so3573481wme.1 for ; Tue, 22 May 2018 14:39:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=penski-net.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=OPTBiJX2CStXDVGv1w1jwi5Tm/jy5mNTa/gXTrq2XM0=; b=gK9Gf5z6JIPYPVfJlXd9saYORZEDVC4jIR/XK5M90spEsiS8qn0L6VYvFKqxfhiYpC jB4Te450ATDkvcEgzto/cAcVlfGLnTIvyUv0soQ9O/0UXWjvauWFBhuLPGfMnb25xll+ 0oDdwxH38lu8wy4dk3jrM3msl8MIciekQ2Ji6G9jauPCsiG9NQP27g9S41lNSbTNt8WB Lz29ng1Tml+ZDMGjadzjOqWYwnKUjl8Qla4qWgOET7LN4z0YU0y3trCbDsGe3g8GKLsO dQsP9d83e89ErfqFSfV/FqwmsRpshTkV+ta+QFlGPgBsKyhjPK48nOZFHp0g0LdAPA3+ dxxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=OPTBiJX2CStXDVGv1w1jwi5Tm/jy5mNTa/gXTrq2XM0=; b=d+Xx5gyezzWbeDWU9aE+Vh4ypVTM5eEtEn3oEPSJYFVr/Ca2+6PRSDPyQlAH+lUR3v oFQrRGyZdY9nfnSrjSL/CKhSWkXa6KbYQqz8qyL5EpSF1gW9Fg00VcSfpS5tVsJ2ZCwb SMRkUPfWdX1JYBFoOQAy64sExeJ87/47+dJL4QuELFrccr5Ceviim5/VTZ5jtMmqMobh iNrsWkph9SgFWTYcsVQMc4T/8jzBiUgYl4KS0ZvpSjhatKt77PWhyT3PuiLIFwgLddO3 gC/BQKC/bDAqgbkU25Fh33yxvNF+ZybhqExtVGyrERzP87tg6v34NPx6LvNvy9DnLx/G IUMg== X-Gm-Message-State: ALKqPwc9HwRhaegepnBG6+UK2N+C04soHLix2dEEVBh+DmBMX9Z85VjV E3jlyhwsSy/JVdScr4GL02EhFz7RAEeWX9FK+HPiNA== X-Google-Smtp-Source: AB8JxZpXnuxjNU6T1ev7LrBmrRNWdleaIRW5rVrBPLi/2Wj9nLQuWbn9GzFmj0EOZDqDbsXKW9+X3sFKHY+fiVg+ge4= X-Received: by 2002:a50:b706:: with SMTP id g6-v6mr4065701ede.228.1527025144210; Tue, 22 May 2018 14:39:04 -0700 (PDT) MIME-Version: 1.0 Sender: munro@penski.net Received: by 2002:a50:a9e1:0:0:0:0:0 with HTTP; Tue, 22 May 2018 14:39:03 -0700 (PDT) X-Originating-IP: [121.73.38.77] In-Reply-To: <77D988F8-ED6A-4F74-B81B-69BE4CC1D5FA@FreeBSD.org> References: <20180521134306.GT6887@kib.kiev.ua> <77D988F8-ED6A-4F74-B81B-69BE4CC1D5FA@FreeBSD.org> From: Thomas Munro Date: Wed, 23 May 2018 09:39:03 +1200 X-Google-Sender-Auth: V2uT8MsFme9uwp8sgXt3Wu6YpEA Message-ID: Subject: Re: printf("%m") doesn't generate a warning -- shouldn't it? To: Dimitry Andric Cc: Konstantin Belousov , freebsd-hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 May 2018 21:39:06 -0000 On 22 May 2018 at 22:39, Dimitry Andric wrote: > On 21 May 2018, at 15:43, Konstantin Belousov wrote: >> Why not add %m instead ? It is very easy and several people did it in >> round-about ways. > > Sure, that is certainly a nice thing to have, and let's commit it. +1 > But > it's still an upstream bug if an explicit warning flag for non-ISO > printf specifiers doesn't work. I'll take that discussion to the LLVM > bug tracker. Thanks. Agreed. Also, even if %m is committed, older FreeBSD releases will be affected for some time, and many other operating systems are too.