From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 86934 invoked by alias); 26 Feb 2015 19:55:13 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 86092 invoked by uid 89); 26 Feb 2015 19:55:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,MIME_BASE64_BLANKS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: ausc60pc101.us.dell.com Received: from ausc60pc101.us.dell.com (HELO ausc60pc101.us.dell.com) (143.166.85.206) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Thu, 26 Feb 2015 19:55:11 +0000 X-LoopCount0: from 10.175.216.250 From: To: CC: , Subject: Re: many unused function warnings in gdb 7.9 on darwin Date: Thu, 26 Feb 2015 20:21:00 -0000 Message-ID: <024299DE-C682-4DB4-B1A1-FCF89C969C27@dell.com> References: <54EEF2D4.2000602@redhat.com> In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-IsSubscribed: yes X-SW-Source: 2015-02/txt/msg00074.txt.bz2 DQo+IE9uIEZlYiAyNiwgMjAxNSwgYXQgMjo0MSBQTSwgSmFjayBIb3dhcnRo IDxob3dhcnRoLm1haWxpbmcubGlzdHNAZ21haWwuY29tPiB3cm90ZToNCj4g DQo+IFRoZSBjbGFuZyBkZXZlbG9wZXJzIGhhdmUgY29tbWVudHMgb24gdGhp cyBpc3N1ZSBpbg0KPiBodHRwOi8vbGx2bS5vcmcvYnVncy9zaG93X2J1Zy5j Z2k/aWQ9MjI3MTIjYzEuIFRoZXkgYXNrIChhcyBJIGRpZA0KPiBvcmlnaW5h bGx5KSB3aHkgd2UgYXJlbid0IHdyYXBwaW5nIHRoZXNlIGZ1bmN0aW9ucyB0 byBrZWVwIHRoZW0gZnJvbQ0KPiBiZWluZyBkZWNsYXJlZCBvbiBkYXJ3aW4g aWYgdGhleSBhcmVuJ3QgdXNlZC4NCg0KSSBjYW4gdGhpbmsgb2YgYSBnb29k IHJlYXNvbjogdGhleSBhcmUgdXNlZCBhcyBjbGVhbmVyIHJlcGxhY2VtZW50 cyBmb3IgbWFjcm9zLCBkZWZpbmVkIGluIGhlYWRlciBmaWxlcy4gIFNvIHRo ZXkgYXJlIHVzZWQgaW4gc29tZSBmaWxlcyB0aGF0IGluY2x1ZGUgdGhvc2Ug aGVhZGVycywgYnV0IG5vdCBvdGhlcnMuICBUaGF04oCZcyB3aHkgR0NDIGhh cyB0aGF0IHJ1bGUgYWJvdXQgbm90IHdhcm5pbmcgaWYgdGhlIGZ1bmN0aW9u IGlzIHN0YXRpYyBpbmxpbmUuDQoNCglwYXVsDQoNCg== >From gdb-return-44153-listarch-gdb=sources.redhat.com@sourceware.org Thu Feb 26 19:59:48 2015 Return-Path: Delivered-To: listarch-gdb@sources.redhat.com Received: (qmail 115041 invoked by alias); 26 Feb 2015 19:59:47 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Delivered-To: mailing list gdb@sourceware.org Received: (qmail 115032 invoked by uid 89); 26 Feb 2015 19:59:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 X-HELO: gproxy4-pub.mail.unifiedlayer.com Received: from gproxy4-pub.mail.unifiedlayer.com (HELO gproxy4-pub.mail.unifiedlayer.com) (69.89.23.142) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with SMTP; Thu, 26 Feb 2015 19:59:46 +0000 Received: (qmail 24580 invoked by uid 0); 26 Feb 2015 19:59:44 -0000 Received: from unknown (HELO cmgw4) (10.0.90.85) by gproxy4.mail.unifiedlayer.com with SMTP; 26 Feb 2015 19:59:44 -0000 Received: from box531.bluehost.com ([74.220.219.131]) by cmgw4 with id xEyu1p00Z2qhmhE01EyxLJ; Thu, 26 Feb 2015 19:58:58 -0700 X-Authority-Analysis: v=2.1 cv=GubRpCFC c=1 sm=1 tr=0 a=GcR8MKwCKDX7fzHfRD/fNg==:117 a=GcR8MKwCKDX7fzHfRD/fNg==:17 a=cNaOj0WVAAAA:8 a=f5113yIGAAAA:8 a=IkcTkHD0fZMA:10 a=pBbsfl06AAAA:8 a=cdVwids0oJMA:10 a=7_veK-dxs6cA:10 a=0HtSIViG9nkA:10 a=44aoxGh7VelAC95YmwsA:9 a=QEXdDO2ut3YA:10 a=C1-9Ct6nFJAA:10 a=RH3_MZ1yPqkA:10 a=x1YFky1kjisA:10 Received: from [108.20.184.53] (port=55962 helo=homebase.home) by box531.bluehost.com with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.82) (envelope-from ) id 1YR4aG-0005DU-At; Thu, 26 Feb 2015 12:58:56 -0700 Message-ID: <1424980793.824.65.camel@homebase> Subject: Re: format string is not a string literal From: Paul Smith Reply-To: paul@mad-scientist.net To: Pedro Alves Cc: Jack Howarth , Andrew Pinski , Simon Marchi , "Paul_Koning@dell.com" , "gdb@sourceware.org" Date: Fri, 27 Feb 2015 02:22:00 -0000 In-Reply-To: <54EF672F.3070509@redhat.com> References: <0AB56024-875B-4724-8ED2-A9DDB237CBFF@dell.com> <23CC7871-C616-436C-920C-4A635DC87189@dell.com> <7A311B56-C424-4C4F-A0E4-B12B65131745@gmail.com> <54EEECD9.4050909@redhat.com> <54EF672F.3070509@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Identified-User: {678:box531.bluehost.com:madscie1:mad-scientist.us} {sentby:smtp auth 108.20.184.53 authed with paul@mad-scientist.us} X-SW-Source: 2015-02/txt/msg00075.txt.bz2 Content-length: 437 On Thu, 2015-02-26 at 18:34 +0000, Pedro Alves wrote: > Paul, I've improved the comment in vcomplain to clarify > the solution. Thanks for poking about that. Aha thanks; your comment is a little more clear than your email reply; I was wondering how the compiler could know that the caller's format string was literal...but from your comment it's clear it just assumes it if we add proper attributes to vcomplaint(). Spiffy! Cheers!