xref: /titanic_51/usr/src/cmd/sgs/ar/common/lintsup.c (revision ba7866cd2cbdf574f47d4e38a1301b90744dd677)
1*ba7866cdSAli Bahrami /*
2*ba7866cdSAli Bahrami  * CDDL HEADER START
3*ba7866cdSAli Bahrami  *
4*ba7866cdSAli Bahrami  * The contents of this file are subject to the terms of the
5*ba7866cdSAli Bahrami  * Common Development and Distribution License (the "License").
6*ba7866cdSAli Bahrami  * You may not use this file except in compliance with the License.
7*ba7866cdSAli Bahrami  *
8*ba7866cdSAli Bahrami  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*ba7866cdSAli Bahrami  * or http://www.opensolaris.org/os/licensing.
10*ba7866cdSAli Bahrami  * See the License for the specific language governing permissions
11*ba7866cdSAli Bahrami  * and limitations under the License.
12*ba7866cdSAli Bahrami  *
13*ba7866cdSAli Bahrami  * When distributing Covered Code, include this CDDL HEADER in each
14*ba7866cdSAli Bahrami  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*ba7866cdSAli Bahrami  * If applicable, add the following below this CDDL HEADER, with the
16*ba7866cdSAli Bahrami  * fields enclosed by brackets "[]" replaced with your own identifying
17*ba7866cdSAli Bahrami  * information: Portions Copyright [yyyy] [name of copyright owner]
18*ba7866cdSAli Bahrami  *
19*ba7866cdSAli Bahrami  * CDDL HEADER END
20*ba7866cdSAli Bahrami  */
21*ba7866cdSAli Bahrami 
22*ba7866cdSAli Bahrami /*
23*ba7866cdSAli Bahrami  * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
24*ba7866cdSAli Bahrami  */
25*ba7866cdSAli Bahrami 
26*ba7866cdSAli Bahrami /*
27*ba7866cdSAli Bahrami  * Supplemental Pseudo-code to get lint to consider these symbols used.
28*ba7866cdSAli Bahrami  */
29*ba7866cdSAli Bahrami #include	<msg.h>
30*ba7866cdSAli Bahrami 
31*ba7866cdSAli Bahrami #pragma error_messages(off, E_STATIC_UNUSED)
32*ba7866cdSAli Bahrami 
33*ba7866cdSAli Bahrami static void
34*ba7866cdSAli Bahrami foo(void)
35*ba7866cdSAli Bahrami {
36*ba7866cdSAli Bahrami 	(void) _ar_msg((Msg)&__ar_msg[0]);
37*ba7866cdSAli Bahrami }
38