From 25a7d02739e0e67ab83a7b44e25fbf1ee6fa4c99 Mon Sep 17 00:00:00 2001 From: Martynas Venckus Date: Tue, 31 May 2011 21:08:30 +0000 Subject: Make lint play nicer in pass 2 of libm on amd64 and i386. The internal _ItL_* extended-precision constants are of course going to be declared inconsistently since we define them based on structures; however prototype as long doubles. --- lib/libm/arch/amd64/invtrig.c | 6 +++++- lib/libm/arch/i387/invtrig.c | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/libm/arch/amd64/invtrig.c b/lib/libm/arch/amd64/invtrig.c index dc32f953c2d..f0f84bcca36 100644 --- a/lib/libm/arch/amd64/invtrig.c +++ b/lib/libm/arch/amd64/invtrig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: invtrig.c,v 1.1 2008/12/09 20:00:35 martynas Exp $ */ +/* $OpenBSD: invtrig.c,v 1.2 2011/05/31 21:08:29 martynas Exp $ */ /*- * Copyright (c) 2008 David Schultz * All rights reserved. @@ -27,6 +27,8 @@ #include +#ifndef lint + #define STRUCT_DECLS #include "invtrig.h" @@ -82,3 +84,5 @@ const LONGDOUBLE aT[] = { const LONGDOUBLE pi_lo = { 0xece675d1fc8f8cbbULL, 0xbfbeU }; /* -5.01655761266833202345e-20L */ + +#endif /* !lint */ diff --git a/lib/libm/arch/i387/invtrig.c b/lib/libm/arch/i387/invtrig.c index dc32f953c2d..f0f84bcca36 100644 --- a/lib/libm/arch/i387/invtrig.c +++ b/lib/libm/arch/i387/invtrig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: invtrig.c,v 1.1 2008/12/09 20:00:35 martynas Exp $ */ +/* $OpenBSD: invtrig.c,v 1.2 2011/05/31 21:08:29 martynas Exp $ */ /*- * Copyright (c) 2008 David Schultz * All rights reserved. @@ -27,6 +27,8 @@ #include +#ifndef lint + #define STRUCT_DECLS #include "invtrig.h" @@ -82,3 +84,5 @@ const LONGDOUBLE aT[] = { const LONGDOUBLE pi_lo = { 0xece675d1fc8f8cbbULL, 0xbfbeU }; /* -5.01655761266833202345e-20L */ + +#endif /* !lint */ -- cgit v1.2.3