autoconf
[Top][All Lists]
Advanced

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

strftime vs. gcc3


From: Thomas Klausner
Subject: strftime vs. gcc3
Date: Sat, 27 Sep 2003 00:07:54 +0200

Hi!

openbox-2.2.3 (a C++ program) includes a test for strftime:
AC_CHECK_FUNCS(getpid setlocale sigaction strftime ...)

This results in configure-test code as attached.
It gets compiled with a command line similar to
c++ -O2 foo.c -o foo
and with gcc-3.3.1 it fails (at least on NetBSD) with:
foo.c:63: error: nonnull argument with out-of-range operand number (arg 1, 
   operand 3)

strftime is defined in time.h as
size_t strftime __P((char * __restrict, size_t, const char * __restrict,
    const struct tm * __restrict));

Any ideas on how to fix this?
 Thomas

-- 
Thomas Klausner - address@hidden
What is wanted is not the will to believe, but the will to find
out, which is the exact opposite. -- Bertrand Russell

Attachment: foo.c
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]