Package: flex
Version: 2.5.35-2
Severity: minor
Tags: patch

flex adds the declaration of isatty in the generated source file but
this declaration is already present in the included
/usr/include/unistd.h file.

Generate code contains:
#ifndef __cplusplus
extern int isatty (int );
#endif /* __cplusplus */


The compiler reports the warning:
tokenparser.c:1350: attention : redundant redeclaration of ‘isatty’
/usr/include/unistd.h:745: attention : previous declaration of ‘isatty’ was here


Proposed patch:
--- skel.c.orig 2008-06-27 10:14:15.000000000 +0200
+++ skel.c      2008-06-27 10:14:23.000000000 +0200
@@ -2261,18 +2261,6 @@
   "}",
   "",
   "",
-  "%if-c-only",
-  "m4_ifdef( [[M4_YY_ALWAYS_INTERACTIVE]],,",
-  "[[",
-  "    m4_ifdef( [[M4_YY_NEVER_INTERACTIVE]],,",
-  "    [[",
-  "#ifndef __cplusplus",
-  "extern int isatty M4_YY_PARAMS( int );",
-  "#endif /* __cplusplus */",
-  "    ]])",
-  "]])",
-  "%endif",
-  "",
   "%if-c++-only",
   "m4_ifdef( [[M4_YY_NEVER_INTERACTIVE]],,",
   "[[",


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages flex depends on:
ii  debconf [debconf-2.0]         1.5.22     Debian configuration management sy
ii  libc6                         2.7-12     GNU C Library: Shared libraries
ii  m4                            1.4.11-1   a macro processing language

Versions of packages flex recommends:
ii  gcc [c-compiler]              4:4.3.1-1  The GNU C compiler
ii  gcc-4.1 [c-compiler]          4.1.2-22   The GNU C compiler
ii  gcc-4.2 [c-compiler]          4.2.4-2+b1 The GNU C compiler
ii  gcc-4.3 [c-compiler]          4.3.1-2    The GNU C compiler

-- debconf information:
  flex/upgrade/pre_2.5.5: false



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to