This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Kill 4 warnings, assert()


> Date: Thu, 4 Jul 2002 18:52:50 +0200 (CEST)
> From: Bruno Haible <bruno@clisp.org>

> > The use of sizeof can break strictly compliant code.
> 
> How? Can you give an example?

Here's a contrived one.  This code is strictly conforming.

#define NDEBUG
#include <assert.h>

int main (void)
{
  assert (the rain in spain);
  return 0;
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]