From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27870 invoked by alias); 24 Feb 2015 17:16:24 -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 27855 invoked by uid 89); 24 Feb 2015 17:16:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-ig0-f169.google.com Received: from mail-ig0-f169.google.com (HELO mail-ig0-f169.google.com) (209.85.213.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 24 Feb 2015 17:14:04 +0000 Received: by mail-ig0-f169.google.com with SMTP id hl2so30043021igb.0 for ; Tue, 24 Feb 2015 09:13:47 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.50.138.76 with SMTP id qo12mr21729386igb.36.1424798026944; Tue, 24 Feb 2015 09:13:46 -0800 (PST) Received: by 10.107.5.21 with HTTP; Tue, 24 Feb 2015 09:13:46 -0800 (PST) Date: Tue, 24 Feb 2015 17:16:00 -0000 Message-ID: Subject: format string is not a string literal From: Jack Howarth To: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-02/txt/msg00047.txt.bz2 Building gdb 7.9 on x86_64-apple-darwin14 produces a number of warnings from -Wformat-nonliteral... darwin-nat.c:184:23: warning: format string is not a string literal [-Wformat-nonliteral] vprintf_unfiltered (fmt, ap); ^~~ remote.c:6986:37: warning: format string is not a string literal [-Wformat-nonliteral] if (vsnprintf (rs->buf, max_size, format, ap) >= max_size) ^~~~~~ /usr/include/secure/_stdio.h:75:63: note: expanded from macro 'vsnprintf' __builtin___vsnprintf_chk (str, len, 0, __darwin_obsz(str), format, ap) ^ ctf.c:109:39: warning: format string is not a string literal [-Wformat-nonliteral] if (vfprintf (handler->metadata_fd, format, args) < 0) ^~~~~~ ./guile/scm-string.c:70:25: warning: format string is not a string literal [-Wformat-nonliteral] string = xstrvprintf (format, args); ^~~~~~ ./guile/scm-utils.c:86:25: warning: format string is not a string literal [-Wformat-nonliteral] string = xstrvprintf (format, args); ^~~~~~ auto-load.c:486:40: warning: format string is not a string literal [-Wformat-nonliteral] vfprintf_unfiltered (gdb_stdlog, debug_fmt, debug_args); ^~~~~~~~~ complaints.c:188:10: warning: format string is not a string literal [-Wformat-nonliteral] complaint->fmt, args); ^~~~~~~~~~~~~~ complaints.c:195:12: warning: format string is not a string literal [-Wformat-nonliteral] vwarning (complaint->fmt, args); ^~~~~~~~~~~~~~ complaints.c:200:23: warning: format string is not a string literal [-Wformat-nonliteral] msg = xstrvprintf (complaint->fmt, args); ^~~~~~~~~~~~~~ ./compile/compile-object-load.c:235:22: warning: format string is not a string literal [-Wformat-nonliteral] str = xstrvprintf (fmt, ap); ^~~ ./compile/compile-loc2c.c:453:30: warning: format string is not a string literal [-Wformat-nonliteral] vfprintf_filtered (stream, format, args); ^~~~~~ ./compile/compile-loc2c.c:470:30: warning: format string is not a string literal [-Wformat-nonliteral] vfprintf_filtered (stream, format, args); ^~~~~~ ./compile/compile-loc2c.c:485:30: warning: format string is not a string literal [-Wformat-nonliteral] vfprintf_filtered (stream, format, args); ^~~~~~