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 E81D61391ED for ; Sat, 8 Mar 2014 05:51:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 81AA4E0B17; Sat, 8 Mar 2014 05:51:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 083B0E0B17 for ; Sat, 8 Mar 2014 05:51:20 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 13B8133FC16 for ; Sat, 8 Mar 2014 05:51:20 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id AD7A3188EC for ; Sat, 8 Mar 2014 05:51:17 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1392708693.53eb581c73a37cee5dbff7dd36f6c47379d97c02.vapier@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: / X-VCS-Repository: proj/portage-utils X-VCS-Files: Makefile main.c X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 53eb581c73a37cee5dbff7dd36f6c47379d97c02 X-VCS-Branch: master Date: Sat, 8 Mar 2014 05:51:17 +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: 7abad16a-785b-4032-a521-1b8e4fbf3dbe X-Archives-Hash: 479f6566f6074dc8d4269902c41f058b commit: 53eb581c73a37cee5dbff7dd36f6c47379d97c02 Author: Mike Frysinger gentoo org> AuthorDate: Tue Feb 18 07:31:33 2014 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Tue Feb 18 07:31:33 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage-utils.git;a=commit;h=53eb581c build with -Wold-style-definition to weed out old bad func definitions --- Makefile | 5 +++-- main.c | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 717352d..bda2deb 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # Copyright 2005-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-projects/portage-utils/Makefile,v 1.76 2013/09/29 22:12:51 vapier Exp $ +# $Header: /var/cvsroot/gentoo-projects/portage-utils/Makefile,v 1.77 2014/02/18 07:31:33 vapier Exp $ #################################################################### check_gcc=$(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null > /dev/null 2>&1; \ @@ -13,7 +13,8 @@ WFLAGS := -Wall -Wunused -Wimplicit -Wshadow -Wformat=2 \ -Wchar-subscripts -Wcast-align -Wno-format-nonliteral \ $(call check_gcc, -Wsequence-point) \ $(call check_gcc, -Wextra) \ - $(call check_gcc, -Wno-sign-compare) + $(call check_gcc, -Wno-sign-compare) \ + $(call check_gcc, -Wold-style-definition) CFLAGS ?= -O2 -g -pipe CFLAGS += -std=gnu99 diff --git a/main.c b/main.c index e87dbee..828c10f 100644 --- a/main.c +++ b/main.c @@ -1,7 +1,7 @@ /* * Copyright 2005-2013 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 - * $Header: /var/cvsroot/gentoo-projects/portage-utils/main.c,v 1.230 2014/02/18 07:26:14 vapier Exp $ + * $Header: /var/cvsroot/gentoo-projects/portage-utils/main.c,v 1.231 2014/02/18 07:31:33 vapier Exp $ * * Copyright 2005-2008 Ned Ludd - * Copyright 2005-2013 Mike Frysinger - @@ -69,8 +69,8 @@ void init_coredumps(void) /* include common library code */ #include "libq/libq.c" -void no_colors(void); -void no_colors() +_q_static +void no_colors(void) { /* echo $(awk '{print $4,"="}' libq/colors.c | grep ^* |cut -c 2-| grep ^[A-Z] |tr '\n' ' ') = \"\"\; */ BOLD = NORM = BLUE = DKBLUE = CYAN = GREEN = DKGREEN = MAGENTA = RED = YELLOW = BRYELLOW = WHITE = "";