xref: /onnv-gate/usr/src/cmd/sgs/mcs/common/lintsup.c (revision 11594:d414d6f28ebb)
19131SRod.Evans@Sun.COM /*
29131SRod.Evans@Sun.COM  * CDDL HEADER START
39131SRod.Evans@Sun.COM  *
49131SRod.Evans@Sun.COM  * The contents of this file are subject to the terms of the
59131SRod.Evans@Sun.COM  * Common Development and Distribution License (the "License").
69131SRod.Evans@Sun.COM  * You may not use this file except in compliance with the License.
79131SRod.Evans@Sun.COM  *
89131SRod.Evans@Sun.COM  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
99131SRod.Evans@Sun.COM  * or http://www.opensolaris.org/os/licensing.
109131SRod.Evans@Sun.COM  * See the License for the specific language governing permissions
119131SRod.Evans@Sun.COM  * and limitations under the License.
129131SRod.Evans@Sun.COM  *
139131SRod.Evans@Sun.COM  * When distributing Covered Code, include this CDDL HEADER in each
149131SRod.Evans@Sun.COM  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
159131SRod.Evans@Sun.COM  * If applicable, add the following below this CDDL HEADER, with the
169131SRod.Evans@Sun.COM  * fields enclosed by brackets "[]" replaced with your own identifying
179131SRod.Evans@Sun.COM  * information: Portions Copyright [yyyy] [name of copyright owner]
189131SRod.Evans@Sun.COM  *
199131SRod.Evans@Sun.COM  * CDDL HEADER END
209131SRod.Evans@Sun.COM  */
219131SRod.Evans@Sun.COM 
229131SRod.Evans@Sun.COM /*
23*11594SSurya.Prakki@Sun.COM  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
249131SRod.Evans@Sun.COM  * Use is subject to license terms.
259131SRod.Evans@Sun.COM  */
269131SRod.Evans@Sun.COM 
279131SRod.Evans@Sun.COM /*
289131SRod.Evans@Sun.COM  * Supplimental Pseudo-code to get lint to consider these symbols used.
299131SRod.Evans@Sun.COM  */
309131SRod.Evans@Sun.COM 
319131SRod.Evans@Sun.COM #include "alist.h"
329131SRod.Evans@Sun.COM 
33*11594SSurya.Prakki@Sun.COM #pragma error_messages(off, E_STATIC_UNUSED)
34*11594SSurya.Prakki@Sun.COM 
35*11594SSurya.Prakki@Sun.COM static void
foo()369131SRod.Evans@Sun.COM foo()
379131SRod.Evans@Sun.COM {
389131SRod.Evans@Sun.COM 	(void) alist_append(NULL, NULL, 0, 0);
399131SRod.Evans@Sun.COM 	alist_delete_by_offset(NULL, NULL);
409131SRod.Evans@Sun.COM 	(void) alist_insert_by_offset(NULL, NULL, 0, 0, 0);
419131SRod.Evans@Sun.COM 	alist_reset(NULL);
429131SRod.Evans@Sun.COM 
439131SRod.Evans@Sun.COM 	(void) aplist_delete_value(NULL, NULL);
449131SRod.Evans@Sun.COM 	aplist_reset(NULL);
459131SRod.Evans@Sun.COM 	(void) aplist_test(NULL, NULL, 0);
469131SRod.Evans@Sun.COM }
47