chk.c (228992) | chk.c (298879) |
---|---|
1/* $NetBSD: chk.c,v 1.15 2002/01/21 19:49:52 tv Exp $ */ 2 3/* 4 * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. 5 * Copyright (c) 1994, 1995 Jochen Pohl 6 * All Rights Reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 22 unchanged lines hidden (view full) --- 31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 32 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 */ 34 35#include <sys/cdefs.h> 36#if defined(__RCSID) && !defined(lint) 37__RCSID("$NetBSD: chk.c,v 1.15 2002/01/21 19:49:52 tv Exp $"); 38#endif | 1/* $NetBSD: chk.c,v 1.15 2002/01/21 19:49:52 tv Exp $ */ 2 3/* 4 * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. 5 * Copyright (c) 1994, 1995 Jochen Pohl 6 * All Rights Reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 22 unchanged lines hidden (view full) --- 31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 32 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 */ 34 35#include <sys/cdefs.h> 36#if defined(__RCSID) && !defined(lint) 37__RCSID("$NetBSD: chk.c,v 1.15 2002/01/21 19:49:52 tv Exp $"); 38#endif |
39__FBSDID("$FreeBSD: head/usr.bin/xlint/lint2/chk.c 228992 2011-12-30 11:02:40Z uqs $"); | 39__FBSDID("$FreeBSD: head/usr.bin/xlint/lint2/chk.c 298879 2016-05-01 16:13:05Z pfg $"); |
40 41#include <ctype.h> 42#include <err.h> 43#include <limits.h> 44#include <stdlib.h> 45 46#include "lint2.h" 47 --- 406 unchanged lines hidden (view full) --- 454 * with this declaration. Otherwise we compare it with the first 455 * call we have found (call1). 456 */ 457 458 /* arg1 must be promoted if it stems from an old style definition */ 459 promote = def != NULL && def->s_osdef; 460 461 /* | 40 41#include <ctype.h> 42#include <err.h> 43#include <limits.h> 44#include <stdlib.h> 45 46#include "lint2.h" 47 --- 406 unchanged lines hidden (view full) --- 454 * with this declaration. Otherwise we compare it with the first 455 * call we have found (call1). 456 */ 457 458 /* arg1 must be promoted if it stems from an old style definition */ 459 promote = def != NULL && def->s_osdef; 460 461 /* |
462 * If we compair with a definition or declaration, we must perform | 462 * If we compare with a definition or declaration, we must perform |
463 * the same checks for qualifiers in indirected types as in 464 * assignments. 465 */ 466 asgn = def != NULL || (decl != NULL && TP(decl->s_type)->t_proto); 467 468 warn = 0; 469 if (eqtype(arg1, arg2, 1, promote, asgn, &warn) && (!sflag || !warn)) 470 return; --- 880 unchanged lines hidden --- | 463 * the same checks for qualifiers in indirected types as in 464 * assignments. 465 */ 466 asgn = def != NULL || (decl != NULL && TP(decl->s_type)->t_proto); 467 468 warn = 0; 469 if (eqtype(arg1, arg2, 1, promote, asgn, &warn) && (!sflag || !warn)) 470 return; --- 880 unchanged lines hidden --- |