ngie 9db6ab9267 Fix warnings with lib/libpmc
* Use `MIN` instead of similar hand rolled macro.
* Sort headers.
* Use `errno.h` instead of `sys/errno.h`.
* Wrap the argument to sizeof in parentheses for clarity.
* Remove `__BSD_VISIBLE` and `_XOPEN_SOURCE` #defines to mute warnings about
  incompatible snprintf definitions.

This fixes a number of warnings I've been seeing lately in my builds.

Sort makefile variables per style.Makefile(9) (`CFLAGS`/`CWARNFLAG.gcc`) and
bump `WARNS` to 3.

MFC after:	2 weeks
Reviewed by:	jtl
Approved by:	jtl (mentor)
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D19851
2019-04-14 00:06:49 +00:00
..
2019-01-12 21:29:54 +00:00
2019-03-25 11:49:57 +00:00
2019-02-26 05:59:22 +00:00
2019-04-02 12:50:01 +00:00
2019-03-29 18:45:27 +00:00
2019-03-29 18:45:27 +00:00
2019-03-29 18:45:27 +00:00
2018-03-29 19:43:29 +00:00
2019-01-10 14:35:23 +00:00
2019-01-10 14:35:23 +00:00
2018-11-04 16:08:59 +00:00
2019-02-25 18:22:20 +00:00
2018-03-21 14:37:04 +00:00
2019-03-20 21:48:43 +00:00
2018-10-12 05:27:58 +00:00
2018-06-27 19:29:15 +00:00
2018-09-19 07:05:31 +00:00
2019-02-10 23:28:55 +00:00
2019-03-29 18:45:27 +00:00
2018-09-20 09:26:10 +00:00
2019-04-14 00:06:49 +00:00
2018-09-19 07:06:20 +00:00
2018-09-20 09:31:27 +00:00
2019-03-05 14:47:15 +00:00
2018-09-22 13:17:30 +00:00
2019-04-03 21:55:39 +00:00
2018-06-17 18:05:27 +00:00
2018-12-29 21:18:01 +00:00
2019-03-29 18:45:27 +00:00