From owner-svn-src-head@freebsd.org Mon Feb 13 20:56:55 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4E695CDDD06; Mon, 13 Feb 2017 20:56:55 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 10AD81260; Mon, 13 Feb 2017 20:56:54 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v1DKusFg046276; Mon, 13 Feb 2017 20:56:54 GMT (envelope-from dim@FreeBSD.org) Received: (from dim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v1DKusnZ046275; Mon, 13 Feb 2017 20:56:54 GMT (envelope-from dim@FreeBSD.org) Message-Id: <201702132056.v1DKusnZ046275@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dim set sender to dim@FreeBSD.org using -f From: Dimitry Andric Date: Mon, 13 Feb 2017 20:56:54 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r313709 - head/usr.bin/dtc X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2017 20:56:55 -0000 Author: dim Date: Mon Feb 13 20:56:53 2017 New Revision: 313709 URL: https://svnweb.freebsd.org/changeset/base/313709 Log: Fix build of BSD dtc when NDEBUG is defined (MK_ASSERT_DEBUG=no): * Initialize correct parent in binary_operator's constructor. * Include explicitly, otherwise errno is undefined (without NDEBUG, this is accidentally 'fixed' by including ). Reported by: matteo MFC after: 3 days Modified: head/usr.bin/dtc/input_buffer.cc Modified: head/usr.bin/dtc/input_buffer.cc ============================================================================== --- head/usr.bin/dtc/input_buffer.cc Mon Feb 13 20:51:08 2017 (r313708) +++ head/usr.bin/dtc/input_buffer.cc Mon Feb 13 20:56:53 2017 (r313709) @@ -32,6 +32,7 @@ #include "input_buffer.hh" #include +#include #include #include #include @@ -544,7 +545,8 @@ struct binary_operator : public binary_o * Constructor. Takes the name of the operator as an argument, for * debugging. Only stores it in debug mode. */ - binary_operator(source_location l, const char *) : expression(l) {} + binary_operator(source_location l, const char *) : + binary_operator_base(l) {} #else const char *opName; binary_operator(source_location l, const char *o) :