Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jul 2002 17:30:39 -0700 (PDT)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        Peter Wemm <peter@wemm.org>
Cc:        Dag-Erling Smorgrav <des@ofug.org>, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/bin/chmod chmod.c 
Message-ID:  <200207110030.g6B0UdAm076672@apollo.backplane.com>
References:   <20020710234615.61E5E3808@overcee.wemm.org>

next in thread | previous in thread | raw e-mail | index | archive | help
:
:Matthew Dillon wrote:
:
:>     I suppose the minimal fix is to remove __printf0like from err(),
:>     errx(), and warn() in /usr/src/include/err.h.  So that is what I will
:>     do if this problem isn't fixed in the tree by 9:00 p.m. PDT tonight.
:
:No, the correct minimal fix is to stub out the attributes, that's why
:we have fine granularity on them!  eg:

    You want to disable the attribute globally?  The only problem with it
    is with three functions that pass NULL.

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>

  
: /* Compiler-dependent macros that rely on FreeBSD-specific extensions. */
:-#if __FreeBSD_cc_version >= 300001
:+#if __FreeBSD_cc_version >= 300001 && !defined(__sparc64__)
: #define        __printf0like(fmtarg, firstvararg) \
:            __attribute__((__format__ (__printf0__, fmtarg, firstvararg)))
: #else
: #define        __printf0like(fmtarg, firstvararg)
:
:The sparc64 thing just was an example.  It may need this instead:
:#if __FreeBSD_cc_version >= 300001 &&  __FreeBSD_cc_version < 500003
:
:There, problem solved.
:
:Cheers,
:-Peter

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207110030.g6B0UdAm076672>