Commit Graph

59 Commits

Author SHA1 Message Date
lukem c4b7a9e794 bsd.own.mk: rename GCC_NO_* to CC_WNO_*
Rename compiler-warning-disable variables from
	GCC_NO_warning
to
	CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
2023-06-03 09:09:01 +00:00
mrg de11d87641 introduce some common variables for use in GCC warning disables:
GCC_NO_FORMAT_TRUNCATION    -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION  -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW    -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE   -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints.  many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
2019-10-13 07:28:04 +00:00
snj cb9b4ba530 delete now-irrelevant comment 2018-03-01 06:24:12 +00:00
snj 51521ab7d9 prune disabled XIDLE support. the required X server extension hasn't been
around for a couple decades now. even if someone wanted to modernize this,
it wouldn't be appropriate for NetBSD, since we don't want programs in base
to be linked against X libs.
2018-02-28 23:45:56 +00:00
plunky 87d4f6076b Apply casts to cases where xdrproc_t is expected but is not
strictly passed, for example because the second argument is
a different kind of pointer.
2011-08-30 17:06:20 +00:00
snj 550147bd6a Remove 3rd and 4th clauses in christos' license. OK christos. 2009-10-21 01:07:44 +00:00
lukem 22fa21205e fix WARNS=4 issues.
(arguably usr.bin/who/utmpentry.c::getutentries() could return size_t not int)
2009-03-16 00:56:16 +00:00
perry 8b0f9554ff convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
mrg 0c37c63edc change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.
2006-05-09 20:18:05 +00:00
christos 5ef1593468 Cleanup and make the arrays dynamically resizable. This will help for
only version 3, because version 2 is still artificially limited to MAXUSERS.
2005-08-01 21:08:34 +00:00
agc 8e6ab8837d Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22284, verified by myself.
2003-08-07 09:46:37 +00:00
christos 511dcb963a PR/18929: Kimmo Suominen: rpc.rusersd ignores utmpx 2002-11-04 22:03:38 +00:00
wiz 888bbaf308 Whitespace nits, sort SEE ALSO. 2002-01-15 02:27:03 +00:00
lukem 1ad851cb0f use LOG_WARNING instead of LOG_ERR for non critical errors 2001-01-10 01:50:05 +00:00
fvdl 19e7dc6fee Use sockaddr_storage. 2000-06-03 20:37:37 +00:00
fvdl e1d419e43a Use TI-RPC interface. ANSIfy. 2000-06-03 19:06:25 +00:00
veego 3764f5646b Disable the linking with X11 libraries.
No userland should be linked against X11.
2000-01-23 09:58:13 +00:00
christos 6b709e3d6d use syslog instead of fprintf, otherwise no-one will see the error 1999-07-06 14:36:10 +00:00
garbled f124765044 More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:25:43 +00:00
mrg f2130fd9fd do not use LOG_CONS. 1999-01-31 08:51:53 +00:00
christos d6ab36722f fix bugs in getidle() that would cause -1 to be returned as the idle time.
also log when we cannot stat the device to get the idle time.
1998-08-12 14:47:30 +00:00
perry bfd526219d bzero->memset, bcopy->memcpy, bcmp->memcmp 1998-08-10 02:57:23 +00:00
mrg ae7821a46c KNF. 1998-07-03 11:49:50 +00:00
kleink bcc2f4cc93 Need <time.h> for time() prototype, and rearrange inclusion order a bit. 1998-04-01 14:47:01 +00:00
christos 36e588a416 PR/4848: Kimmo Suominen: rpc_rusersd tries to open remote host as display
- change LOG_ERR to LOG_DEBUG because xdisplay access fails most
	  of the time.
	- only try the display code if the ut_host field has a :
1998-01-20 17:39:14 +00:00
lukem e8cebc9784 use CPPFLAGS instead of CFLAGS 1997-10-22 05:55:52 +00:00
enami 4de830012c Fix .Nm usage. 1997-10-20 02:49:31 +00:00
mrg 2268d2dfb3 merge lite-2 Makefiles (rcsids), and turn on WARNS for all of libexec. 1997-10-08 09:07:11 +00:00
thorpej 46f168d9f2 The "ufp" global wasn't used in any XIDLE code, so don't declare it inside
an #ifdef XIDLE.  Instead, declare it as an automatic in each function that
uses it.
1997-09-19 00:50:04 +00:00
christos 4c865ddc97 Oops forgot this. 1997-09-17 16:36:25 +00:00
christos 06f9c7876a Fix WARNS problems. sigsetjmp() was missing an argument. 1997-09-17 16:35:54 +00:00
christos d59123b39b - Makefile cleanups 1997-03-24 22:15:37 +00:00
thorpej 176865a07b RCS id police. 1996-08-30 20:15:06 +00:00
thorpej d6cc013968 Now that we compile the tree with -Werror, remove an explicit #warning
and replace it with an XXX comment.
1995-12-14 21:58:33 +00:00
pk 4a5c9a20e5 Use `xdrproc_t' to declare xdr_{args,result}. (takes care of PR#1182). 1995-07-09 00:30:11 +00:00
pk 5bf5f9214d Make declarations confirm to rpcgen generated prototypes. 1995-06-24 15:47:49 +00:00
jtc 2d577aafd2 Install manpage as foo(8) as well as rpc.foo(8), a convenient shorthand.
Also make sure that foo and rpc.foo are mentioned in the NAME section.
1995-04-12 00:47:27 +00:00
mycroft b481f03023 General cleanup. 1995-01-13 19:59:13 +00:00
mycroft 002aa598e1 Correct calling sequence of getsockname(2). 1995-01-13 06:14:28 +00:00
cgd b54e75897f be a bit more careful with types, casts, and and function declarations. 1994-12-23 14:29:31 +00:00
cgd ae9172d6cd specify man pages the new way. 1994-12-22 09:57:51 +00:00
mycroft 02b0255ae0 Fix uninitialized variable. 1994-07-11 21:51:58 +00:00
jtc fe0c74f41f Look for X11 in various likely places.
From Thomas Eberhardt, who adapted it from similar code in gxditview.
1994-02-16 01:06:26 +00:00
cgd 1ac7c7adaa don't need -lutil 1994-01-28 00:31:32 +00:00
cgd de4dd71dfa do the right thing with ifdef, and warn about i386 console hack 1993-11-23 04:40:28 +00:00
mycroft 3b52558c53 Clean up deleted files. 1993-11-21 20:19:17 +00:00
brezak bb3120424b Build rnusers XDR's into librpcsvc and use them. 1993-11-21 20:19:15 +00:00
brezak 4b660341e6 Remove support for vers 1 interface. Add vers 3 interface support. Fix ver 2 support to interoperate with Sun's. 1993-11-21 18:56:33 +00:00
jtc b977f15be3 Touch up manpages. 1993-08-16 15:57:47 +00:00
mycroft aee4b07b8a Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
1993-08-02 17:48:44 +00:00