X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/3d86656c1d647fa6ff94d6dbacd20783861eacf4..f21ce5a3f7a89e5de4916f352becc575db06af64:/lib/subpipe.c?ds=sidebyside diff --git a/lib/subpipe.c b/lib/subpipe.c index 4eee4a0f..646aa8ec 100644 --- a/lib/subpipe.c +++ b/lib/subpipe.c @@ -1,6 +1,6 @@ /* Subprocesses with pipes. - Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc. + Copyright (C) 2002, 2004, 2005, 2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,7 +19,7 @@ /* Written by Paul Eggert and Florian Krohm . */ -#if HAVE_CONFIG_H +#ifdef HAVE_CONFIG_H # include #endif @@ -71,6 +71,18 @@ #include "gettext.h" #define _(Msgid) gettext (Msgid) +#ifndef __attribute__ +/* This feature is available in gcc versions 2.5 and later. */ +# if ! defined __GNUC__ || __GNUC__ < 2 || \ +(__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__ +# define __attribute__(Spec) /* empty */ +# endif +#endif + +#ifndef ATTRIBUTE_UNUSED +# define ATTRIBUTE_UNUSED __attribute__ ((__unused__)) +#endif + /* Initialize this module. */ @@ -168,6 +180,7 @@ reap_subpipe (pid_t pid, char const *program) } void -end_of_output_subpipe (pid_t pid, int fd[2]) +end_of_output_subpipe (pid_t pid ATTRIBUTE_UNUSED, + int fd[2] ATTRIBUTE_UNUSED) { }