Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Aug 1996 09:14:06 -0700 (PDT)
From:      Peter Wemm <peter>
To:        CVS-committers, cvs-all, cvs-sys
Subject:   cvs commit:  src/sys/sys cdefs.h
Message-ID:  <199608181614.JAA00217@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
peter       96/08/18 09:14:05

  Modified:    sys/sys   cdefs.h
  Log:
  Add __unused to the list of __dead, __dead2, __pure, __pure2 etc.
  
  gcc-2.7 has __attribute__((unused)) as a postfix operator on function
  arguments to prevent -Wunused from complaining about them.  gcc < 2.7
  doesn't have anything like this (and doesn't care about it either).
  
  eg:
  int foo(bar, baz)
    int bar __unused;	/* needed because of function pointer typing */
    char *baz __unused;
  {
    return (1);
  }
  
  Revision  Changes    Path
  1.11      +12 -2     src/sys/sys/cdefs.h



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