NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/28368: unrecognized option `-Wnetbsd-format-audit'

The following reply was made to PR toolchain/28368; it has been noted by GNATS.

From: David Holland <>
Subject: Re: toolchain/28368: unrecognized option `-Wnetbsd-format-audit'
Date: Sat, 5 Nov 2011 19:45:08 +0000

 This is not obsoleted by gcc 4.5, since with that and -Wformat=2 the
 appended source is accepted cleanly. Not sure about clang.
 #include <stdio.h>
 #include <stdarg.h>
 static int
 vqprintf(const char *fmt, va_list ap)
         return vfprintf(stderr, fmt, ap);
 static int
 qprintf(const char *fmt, ...)
         va_list ap;
         int ret;
         va_start(ap, fmt);
         ret = vqprintf(fmt, ap);
         return ret;
 main(int argc, char *argv[])
         if (argc == 2) {
                 qprintf(argv[1], argv[2]);
         return 0;
 David A. Holland

Home | Main Index | Thread Index | Old Index