I plan to make a Subversion commit for each of these Git commits.
commit 7cf976f4c5161202bbb2469f90fd0278a84823e2
Author: Eric van Gyzen <eric@vangyzen.net>
Date: Sat May 20 10:06:08 2017 -0500
libthr: Use CLI flags instead of pragmas to disable warnings People tweaking the build system or compilers tend to look into the Makefile and not into the source. Having some warning controls in the Makefile and some in the source code is surprising. Pragmas have the advantage that they leave the warnings enabled for more code, but that advantage isn't very relevant in these cases. Requested by: kib
lib/libthr/Makefile | 6 ++++++
lib/libthr/thread/thr_stack.c | 17 -----------------
lib/libthr/thread/thr_symbols.c | 4 ----
3 files changed, 6 insertions(+), 21 deletions(-)
commit 349c64ef020bf9142e2d7cb570a67d3e79af67da
Author: Eric van Gyzen <eric@vangyzen.net>
Date: Fri May 19 10:14:09 2017 -0500
libthr: use default WARNS level of 6
lib/libthr/Makefile | 1 -
1 file changed, 1 deletion(-)
commit 5b0e584d02b4a3de24f14e5ffe829bf766f1b6aa
Author: Eric van Gyzen <eric@vangyzen.net>
Date: Fri May 19 10:12:22 2017 -0500
Remove old spinlock_debug code from libc This no longer seems useful. Remove it. This was prompted by a "cast discards volatile qualifier" warning in libthr when WARNS=6.
lib/libc/gen/Symbol.map | 1 -
lib/libc/gen/_spinlock_stub.c | 2 --
lib/libc/include/spinlock.h | 13 ++++---------
lib/libthr/thread/thr_init.c | 1 -
lib/libthr/thread/thr_spinlock.c | 12 ++++++------
5 files changed, 10 insertions(+), 19 deletions(-)
commit 3f6bdee0ec8e3d5f6b59df6e31cfac5283907695
Author: Eric van Gyzen <eric@vangyzen.net>
Date: Fri May 19 08:56:56 2017 -0500
libthr: change CHECK_AND_INIT_RWLOCK to an inline function This was prompted by a compiler warning about 'ret' shadowing a local variable in the callers of the macro.
lib/libthr/thread/thr_rwlock.c | 71 ++++++++++++++++++++++++++++--------------
1 file changed, 47 insertions(+), 24 deletions(-)
commit ed979a9da9759c62ef56436966a9b414212da073
Author: Eric van Gyzen <eric@vangyzen.net>
Date: Fri May 19 08:29:09 2017 -0500
libthr: disable thread-safety warnings These warnings don't make sense for code that implements the locking primitives.
lib/libthr/Makefile | 1 +
1 file changed, 1 insertion(+)