mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-23 03:06:52 -04:00
libstrat: enable -Wextra, -Werror
This caught an embarrassingly large number of bugs.
This commit is contained in:
parent
e1fbf27398
commit
7ca83c9d3b
160 changed files with 691 additions and 152 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue