From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 74864 invoked by alias); 30 Sep 2016 14:38:28 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 74075 invoked by uid 89); 30 Sep 2016 14:38:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=lu, Ran, H*r:112 X-HELO: simark.ca Received: from simark.ca (HELO simark.ca) (158.69.221.121) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 30 Sep 2016 14:38:25 +0000 Received: by simark.ca (Postfix, from userid 112) id 42C0B1E130; Fri, 30 Sep 2016 10:38:24 -0400 (EDT) Received: from simark.ca (localhost [127.0.0.1]) by simark.ca (Postfix) with ESMTP id AFBE61E11F; Fri, 30 Sep 2016 10:38:23 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Fri, 30 Sep 2016 14:43:00 -0000 From: Simon Marchi To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: [RFA 01/22] Change selttest.c to use use std::vector In-Reply-To: <1474949330-4307-2-git-send-email-tom@tromey.com> References: <1474949330-4307-1-git-send-email-tom@tromey.com> <1474949330-4307-2-git-send-email-tom@tromey.com> Message-ID: <6e69afbc28df525f7e1ad702cabce5dc@simark.ca> X-Sender: simon.marchi@polymtl.ca User-Agent: Roundcube Webmail/1.2.0 X-IsSubscribed: yes X-SW-Source: 2016-09/txt/msg00429.txt.bz2 On 2016-09-27 00:08, Tom Tromey wrote: > - printf_filtered (_("Ran %u unit tests, %d failed\n"), > - VEC_length (self_test_function_ptr, tests), failed); > + printf_filtered (_("Ran %lu unit tests, %d failed\n"), > + tests.size (), failed); This doesn't build on 32 bits: selftest.c: In function ‘void run_self_tests()’: selftest.c:62:27: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘std::vector::size_type {aka unsigned int}’ [-Werror=format=] tests.size (), failed); ^ I think the right format size specifier would be 'z'.