libstrat: enable -Wextra, -Werror

This caught an embarrassingly large number of bugs.
This commit is contained in:
Michael Scire 2021-10-06 15:20:48 -07:00
parent e1fbf27398
commit 7ca83c9d3b
160 changed files with 691 additions and 152 deletions

View file

@ -23,7 +23,7 @@ namespace ams::os {
#ifdef ATMOSPHERE_BUILD_FOR_AUDITING
void PushAndCheckLockLevel(MutexType *mutex) {
void PushAndCheckLockLevel(const MutexType *mutex) {
/* If auditing isn't specified, don't bother. */
if (mutex->lock_level == 0) {
return;
@ -32,7 +32,7 @@ namespace ams::os {
/* TODO: Implement mutex level auditing. */
}
void PopAndCheckLockLevel(MutexType *mutex) {
void PopAndCheckLockLevel(const MutexType *mutex) {
/* If auditing isn't specified, don't bother. */
if (mutex->lock_level == 0) {
return;
@ -43,12 +43,12 @@ namespace ams::os {
#else
void PushAndCheckLockLevel(MutexType *mutex) {
/* ... */
void PushAndCheckLockLevel(const MutexType *mutex) {
AMS_UNUSED(mutex);
}
void PopAndCheckLockLevel(MutexType *mutex) {
/* ... */
void PopAndCheckLockLevel(const MutexType *mutex) {
AMS_UNUSED(mutex);
}
#endif