From patchwork Thu Jun 26 17:18:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddhesh Poyarekar X-Patchwork-Id: 1769 Received: (qmail 6527 invoked by alias); 26 Jun 2014 17:17:21 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 6506 invoked by uid 89); 26 Jun 2014 17:17:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.5 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Date: Thu, 26 Jun 2014 22:48:43 +0530 From: Siddhesh Poyarekar To: libc-alpha@sourceware.org Subject: [PATCH] Fix Wundef warning for DEBUG in mktime Message-ID: <20140626171842.GA12565@spoyarek.pnq.redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.22.1-rc1 (2013-10-16) Set DEBUG to 0 by default instead of undefined by default. The generated code is unchanged. Alternatively we could just remove the debug code since we don't normally do something like this for any of the other functions. I don't have a strong opinion about it either way. Siddhesh * time/mktime.c: Define DEBUG to 0. --- time/mktime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/time/mktime.c b/time/mktime.c index 963e4b9..a4a2d58 100644 --- a/time/mktime.c +++ b/time/mktime.c @@ -17,9 +17,9 @@ License along with the GNU C Library; if not, see . */ -/* Define this to have a standalone program to test this implementation of +/* Define this to 1 to have a standalone program to test this implementation of mktime. */ -/* #define DEBUG 1 */ +#define DEBUG 0 #ifndef _LIBC # include