diff options
Diffstat (limited to 'usr/src/lib')
-rw-r--r-- | usr/src/lib/gss_mechs/mech_krb5/Makefile.com | 1 | ||||
-rw-r--r-- | usr/src/lib/krb5/kadm5/srv/svr_principal.c | 9 | ||||
-rw-r--r-- | usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/hash.c | 11 | ||||
-rw-r--r-- | usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/hash_bigkey.c | 10 | ||||
-rw-r--r-- | usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/hash_page.c | 23 | ||||
-rw-r--r-- | usr/src/lib/libbsm/Makefile | 2 | ||||
-rw-r--r-- | usr/src/lib/libc/port/fp/_base_sup.c | 4 | ||||
-rw-r--r-- | usr/src/lib/libc/port/print/doprnt.c | 9 | ||||
-rw-r--r-- | usr/src/lib/libc/port/regex/engine.c | 2 |
9 files changed, 19 insertions, 52 deletions
diff --git a/usr/src/lib/gss_mechs/mech_krb5/Makefile.com b/usr/src/lib/gss_mechs/mech_krb5/Makefile.com index 0d437868bf..cc5f115250 100644 --- a/usr/src/lib/gss_mechs/mech_krb5/Makefile.com +++ b/usr/src/lib/gss_mechs/mech_krb5/Makefile.com @@ -256,6 +256,7 @@ CERRWARN += -_gcc=-Wno-type-limits CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-but-set-variable CERRWARN += -_gcc=-Wno-unused-label CERRWARN += -_gcc=-Wno-unused-value CERRWARN += -_gcc=-Wno-empty-body diff --git a/usr/src/lib/krb5/kadm5/srv/svr_principal.c b/usr/src/lib/krb5/kadm5/srv/svr_principal.c index 052f3c80c5..2097ce03a4 100644 --- a/usr/src/lib/krb5/kadm5/srv/svr_principal.c +++ b/usr/src/lib/krb5/kadm5/srv/svr_principal.c @@ -21,14 +21,8 @@ /* * Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved - * - * $Header$ */ -#if !defined(lint) && !defined(__CODECENTER__) -static char *rcsid = "$Header$"; -#endif - #include <sys/types.h> #include <sys/time.h> #include <errno.h> @@ -216,7 +210,7 @@ kadm5_create_principal_3(void *server_handle, osa_princ_ent_rec adb; kadm5_policy_ent_rec polent; krb5_int32 now; - krb5_tl_data *tl_data_orig, *tl_data_tail; + krb5_tl_data *tl_data_tail; unsigned int ret; kadm5_server_handle_t handle = server_handle; @@ -369,7 +363,6 @@ kadm5_create_principal_3(void *server_handle, if (mask & KADM5_TL_DATA) { /* splice entry->tl_data onto the front of kdb.tl_data */ - tl_data_orig = kdb.tl_data; for (tl_data_tail = entry->tl_data; tl_data_tail; tl_data_tail = tl_data_tail->tl_data_next) { diff --git a/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/hash.c b/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/hash.c index 7df1c536e9..ac6ca031df 100644 --- a/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/hash.c +++ b/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/hash.c @@ -1,4 +1,4 @@ -/*- +/* * Copyright (c) 1990, 1993, 1994 * The Regents of the University of California. All rights reserved. * @@ -34,10 +34,6 @@ * SUCH DAMAGE. */ -#if defined(LIBC_SCCS) && !defined(lint) -static char sccsid[] = "@(#)hash.c 8.12 (Berkeley) 11/7/95"; -#endif /* LIBC_SCCS and not lint */ - #undef _TS_ERRNO_ #include <sys/param.h> #include <sys/stat.h> @@ -329,9 +325,7 @@ init_hash(hashp, file, info) const HASHINFO *info; { struct stat statbuf; - int32_t nelem; - nelem = 1; hashp->hdr.nkeys = 0; hashp->hdr.lorder = DB_BYTE_ORDER; hashp->hdr.bsize = DEF_BUCKET_SIZE; @@ -436,11 +430,10 @@ hget_header(hashp, page_size) HTAB *hashp; u_int32_t page_size; { - u_int32_t num_copied, i; + u_int32_t num_copied; u_int8_t *hdr_dest; num_copied = 0; - i = 0; hdr_dest = (u_int8_t *)&hashp->hdr; diff --git a/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/hash_bigkey.c b/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/hash_bigkey.c index a96b8aa985..f71ac2c3d8 100644 --- a/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/hash_bigkey.c +++ b/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/hash_bigkey.c @@ -1,6 +1,4 @@ -#pragma ident "%Z%%M% %I% %E% SMI" - -/*- +/* * Copyright (c) 1990, 1993, 1994 * The Regents of the University of California. All rights reserved. * @@ -36,10 +34,6 @@ * SUCH DAMAGE. */ -#if defined(LIBC_SCCS) && !defined(lint) -static char sccsid[] = "@(#)hash_bigkey.c 8.5 (Berkeley) 11/2/95"; -#endif /* LIBC_SCCS and not lint */ - /* * PACKAGE: hash * DESCRIPTION: @@ -196,12 +190,10 @@ __find_bigpair(hashp, cursorp, key, size) PAGE16 *pagep, *hold_pagep; db_pgno_t next_pgno; int32_t ksize; - u_int16_t bytes; int8_t *kkey; ksize = size; kkey = key; - bytes = 0; hold_pagep = NULL; /* Chances are, hashp->cpage is the base page. */ diff --git a/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/hash_page.c b/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/hash_page.c index b95090def2..23f8d7745c 100644 --- a/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/hash_page.c +++ b/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/hash_page.c @@ -1,6 +1,4 @@ -#pragma ident "%Z%%M% %I% %E% SMI" - -/*- +/* * Copyright (c) 1990, 1993, 1994 * The Regents of the University of California. All rights reserved. * @@ -36,10 +34,6 @@ * SUCH DAMAGE. */ -#if defined(LIBC_SCCS) && !defined(lint) -static char sccsid[] = "@(#)hash_page.c 8.11 (Berkeley) 11/7/95"; -#endif /* LIBC_SCCS and not lint */ - /* * PACKAGE: hashing * @@ -74,7 +68,9 @@ static char sccsid[] = "@(#)hash_page.c 8.11 (Berkeley) 11/7/95"; static int32_t add_bigptr __P((HTAB *, ITEM_INFO *, indx_t)); static u_int32_t *fetch_bitmap __P((HTAB *, int32_t)); static u_int32_t first_free __P((u_int32_t)); +#ifdef DEBUG static indx_t next_realkey __P((PAGE16 *, indx_t)); +#endif static u_int16_t overflow_page __P((HTAB *)); static void page_init __P((HTAB *, PAGE16 *, db_pgno_t, u_int8_t)); static indx_t prev_realkey __P((PAGE16 *, indx_t)); @@ -254,14 +250,9 @@ putpair(p, key, val) * Returns the index of the next non-bigkey pair after n on the page. * Returns -1 if there are no more non-big things on the page. */ +#ifdef DEBUG static indx_t -#ifdef __STDC__ next_realkey(PAGE16 * pagep, indx_t n) -#else -next_realkey(pagep, n) - PAGE16 *pagep; - u_int32_t n; -#endif { indx_t i; @@ -270,6 +261,7 @@ next_realkey(pagep, n) return (i); return (-1); } +#endif /* * Returns the index of the previous non-bigkey pair after n on the page. @@ -307,7 +299,7 @@ __delpair(hashp, cursorp, item_info) PAGE16 *pagep; indx_t ndx; short check_ndx; - int16_t delta, len, next_key; + int16_t delta, len; int32_t n; u_int8_t *src, *dest; @@ -378,9 +370,8 @@ __delpair(hashp, cursorp, item_info) /* Adjust the offsets. */ for (n = ndx; n < NUM_ENT(pagep) - 1; n++) if (KEY_OFF(pagep, (n + 1)) != BIGPAIR) { - next_key = next_realkey(pagep, n); #ifdef DEBUG - assert(next_key != -1); + assert(next_realkey(pagep, n) != -1); #endif KEY_OFF(pagep, n) = KEY_OFF(pagep, (n + 1)) + delta; DATA_OFF(pagep, n) = DATA_OFF(pagep, (n + 1)) + delta; diff --git a/usr/src/lib/libbsm/Makefile b/usr/src/lib/libbsm/Makefile index 514358a52f..86c7bb9802 100644 --- a/usr/src/lib/libbsm/Makefile +++ b/usr/src/lib/libbsm/Makefile @@ -148,7 +148,7 @@ clean_files: -$(RM) $(CLEANFILES) $(GENSRCS): $(ADTXMLFILE) $(AUDITXML) - $(PERL) $(AUDITXML) -o $(COMMONDIR) $(ADTXMLFILE) + $(PERL) -I. $(AUDITXML) -o $(COMMONDIR) $(ADTXMLFILE) $(ETCSECURITYFILES) $(RESA): \ $(ETCSECURITY) \ diff --git a/usr/src/lib/libc/port/fp/_base_sup.c b/usr/src/lib/libc/port/fp/_base_sup.c index b07957740c..52e258d002 100644 --- a/usr/src/lib/libc/port/fp/_base_sup.c +++ b/usr/src/lib/libc/port/fp/_base_sup.c @@ -24,8 +24,6 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include "lint.h" #include <sys/types.h> #include "base_conversion.h" @@ -56,7 +54,7 @@ void __base_conversion_set_exception(fp_exception_field_type ef) { double t; - volatile double tstored; + volatile double tstored __unused; if (ef == (1 << fp_inexact)) { t = 9.999999962747097015E-1; diff --git a/usr/src/lib/libc/port/print/doprnt.c b/usr/src/lib/libc/port/print/doprnt.c index 3bb54445ab..0c0fe0cacb 100644 --- a/usr/src/lib/libc/port/print/doprnt.c +++ b/usr/src/lib/libc/port/print/doprnt.c @@ -449,7 +449,6 @@ _ndoprnt(const char *format, va_list in_args, FILE *iop, int prflag) size_t bpsize; wchar_t *p; char *cbp; - char *cp; #else /* _WIDE */ /* Starting and ending points for value to be printed */ @@ -460,7 +459,6 @@ _ndoprnt(const char *format, va_list in_args, FILE *iop, int prflag) int prec = 0; ssize_t width; ssize_t num; - ssize_t sec_display; wchar_t *wp; ssize_t preco; ssize_t wcount = 0; @@ -470,13 +468,13 @@ _ndoprnt(const char *format, va_list in_args, FILE *iop, int prflag) int quote; /* ' */ int retcode; - #ifdef _WIDE /* Format code */ wchar_t fcode; #else /* _WIDE */ /* Format code */ char fcode; + ssize_t sec_display; #endif /* _WIDE */ /* Number of padding zeroes required on the left and right */ @@ -714,8 +712,10 @@ _ndoprnt(const char *format, va_list in_args, FILE *iop, int prflag) format++; wflag = 0; lflag = 0; - sec_display = 0; quote = 0; +#ifndef _WIDE + sec_display = 0; +#endif charswitch: @@ -1840,7 +1840,6 @@ wide_S: return (EOF); } nwc = mbstowcs(wstr, cbp, nwc); - cp = cbp + strlen(cbp); wcount = nwc; bp = wstr; p = wstr + nwc; diff --git a/usr/src/lib/libc/port/regex/engine.c b/usr/src/lib/libc/port/regex/engine.c index 68cf24a5da..c66c08e59e 100644 --- a/usr/src/lib/libc/port/regex/engine.c +++ b/usr/src/lib/libc/port/regex/engine.c @@ -382,7 +382,7 @@ dissect(struct match *m, const char *start, const char *stop, sopno startst, const char *ssp; /* start of string matched by subsubRE */ const char *sep; /* end of string matched by subsubRE */ const char *oldssp; /* previous ssp */ - const char *dp; + const char *dp __unused; AT("diss", start, stop, startst, stopst); sp = start; |