From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id DE8B113864A for ; Thu, 24 Jan 2013 10:15:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3A531E073F; Thu, 24 Jan 2013 10:15:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B3DC4E073E for ; Thu, 24 Jan 2013 10:15:09 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B40ED33D3D1 for ; Thu, 24 Jan 2013 10:15:08 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 5BE80E4073 for ; Thu, 24 Jan 2013 10:15:07 +0000 (UTC) From: "Sven Eden" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Eden" Message-ID: <1359022058.83f550d6b483d40845865d939352ad8292b6c9b9.yamakuzure@gentoo> Subject: [gentoo-commits] proj/ufed:master commit in: / X-VCS-Repository: proj/ufed X-VCS-Files: config.h.in configure.ac X-VCS-Directories: / X-VCS-Committer: yamakuzure X-VCS-Committer-Name: Sven Eden X-VCS-Revision: 83f550d6b483d40845865d939352ad8292b6c9b9 X-VCS-Branch: master Date: Thu, 24 Jan 2013 10:15:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 035b98ad-c136-4219-9bc7-fd9559cc5a69 X-Archives-Hash: a86080e69002c520a2aa0cb7d806a21d commit: 83f550d6b483d40845865d939352ad8292b6c9b9 Author: Sven Eden gmx de> AuthorDate: Thu Jan 24 10:07:38 2013 +0000 Commit: Sven Eden gmx de> CommitDate: Thu Jan 24 10:07:38 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/ufed.git;a=commit;h=83f550d6 Removed flexible array member configuration checks. It is no longer needed. --- config.h.in | 9 --------- configure.ac | 5 ++--- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/config.h.in b/config.h.in index fb98a70..98d0c13 100644 --- a/config.h.in +++ b/config.h.in @@ -1,14 +1,5 @@ /* config.h.in. Generated from configure.ac by autoheader. */ -/* Define to nothing if C supports flexible array members, and to 1 if it does - not. That way, with a declaration like `struct s { int n; double - d[FLEXIBLE_ARRAY_MEMBER]; };', the struct hack can be used with pre-C99 - compilers. When computing the size of such an object, don't use 'sizeof - (struct s)' as it overestimates the size. Use 'offsetof (struct s, d)' - instead. Don't use 'offsetof (struct s, d[0])', as this doesn't work with - MSVC and with C++ compilers. */ -#undef FLEXIBLE_ARRAY_MEMBER - /* Name of package */ #undef PACKAGE diff --git a/configure.ac b/configure.ac index bf34d16..50c54ca 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ AC_PREREQ(2.68) AC_INIT([ufed],[git],[https://bugs.gentoo.org/]) -AM_INIT_AUTOMAKE([foreign -Wall -Werror]) +AM_INIT_AUTOMAKE([foreign]) AC_CONFIG_SRCDIR([ufed-curses.c]) AC_CONFIG_HEADERS([config.h]) @@ -10,14 +10,13 @@ if test "$ac_cv_prog_cc_c99" != no then CFLAGS="$CFLAGS -Wall -Wextra -pedantic" CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600" - AC_DEFINE([FLEXIBLE_ARRAY_MEMBER], []) else AC_PROG_CC_C89 AC_C_INLINE - AC_C_FLEXIBLE_ARRAY_MEMBER CFLAGS="$CFLAGS -Wall -W" CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500" fi +CFLAGS="${CFLAGS} -Wmissing-prototypes -Wstrict-prototypes" AC_ARG_WITH([curses], [AS_HELP_STRING([--with-curses], [override default curses library (ncursesw ncurses curses)])],