bug-gnulib
[Top][All Lists]
Advanced

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

Problems with gl_VSNPRINTF_ZEROSIZE_C99 under Sun C++ compiler


From: Albert Chin
Subject: Problems with gl_VSNPRINTF_ZEROSIZE_C99 under Sun C++ compiler
Date: Thu, 15 Jan 2009 21:33:19 -0600
User-agent: Mutt/1.5.18 (2008-05-17)

When gl_VSNPRINTF_ZEROSIZE_C99 is run under the Sun C++ compiler on a
recent Solaris release, it fails because of:
  static char buf[8] = "DEADBEEF";

The compiler complains with:
  Error: Cannot use const char[9] to initialize char[8].

So, just replace `8' with `9'?

gl_SNPRINTF_SIZE1 will have the same problem.

-- 
albert chin (address@hidden)




reply via email to

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