Commit 4aab2776 authored by Niels Möller's avatar Niels Möller
Browse files

* configure.ac: Use LSH_GCC_ATTRIBUTES. Deleted the definition of

UNUSED from the files that used it, it's now in config.h.

Rev: src/argp/ChangeLog:1.9
Rev: src/argp/argp-help.c:1.17
Rev: src/argp/argp-parse.c:1.20
Rev: src/argp/argp-test.c:1.7
parent 7acef2c2
2003-02-23 Niels Moller <nisse@carduelis>
* configure.ac: Use LSH_GCC_ATTRIBUTES. Deleted the definition of
UNUSED from the files that used it, it's now in config.h.
2003-02-16 Niels Mller <nisse@cuckoo.hack.org>
* argp-fmtstream.h: When disabling fwrite_unlocked, #undef it first.
......
......@@ -72,16 +72,6 @@ char *alloca ();
#include "argp-namefrob.h"
/* FIXME: We could use a configure test to check for __attribute__,
* just like lsh does. */
#ifndef UNUSED
# if __GNUC__ >= 2
# define UNUSED __attribute__ ((__unused__))
# else
# define UNUSED
# endif
#endif
#ifndef _LIBC
# ifndef __strchrnul
# define __strchrnul strchrnul
......
......@@ -32,14 +32,6 @@
#include <limits.h>
#include <assert.h>
#ifndef UNUSED
# if __GNUC__ >= 2
# define UNUSED __attribute__ ((__unused__))
# else
# define UNUSED
# endif
#endif
#ifndef _
/* This is for other GNU distributions with internationalized messages.
When compiling libc, the _ macro is predefined. */
......
......@@ -33,14 +33,6 @@
#include "argp.h"
#ifndef UNUSED
# if __GNUC__ >= 2
# define UNUSED __attribute__ ((__unused__))
# else
# define UNUSED
# endif
#endif
#if !HAVE_ASPRINTF
#include <stdarg.h>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment