[PATCH] Kill 4 warnings, assert()

Paul Eggert eggert@twinsun.com
Thu Jul 4 10:03:00 GMT 2002


> 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;
}



More information about the Libc-alpha mailing list