mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-30 22:45:17 -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
|
@ -256,41 +256,49 @@ namespace ams::gpio::driver::board::nintendo::nx::impl {
|
|||
|
||||
Result DriverImpl::SetInterruptEnabled(Pad *pad, bool en) {
|
||||
/* TODO */
|
||||
AMS_UNUSED(pad, en);
|
||||
AMS_ABORT();
|
||||
}
|
||||
|
||||
Result DriverImpl::GetInterruptStatus(InterruptStatus *out, Pad *pad) {
|
||||
/* TODO */
|
||||
AMS_UNUSED(out, pad);
|
||||
AMS_ABORT();
|
||||
}
|
||||
|
||||
Result DriverImpl::ClearInterruptStatus(Pad *pad) {
|
||||
/* TODO */
|
||||
AMS_UNUSED(pad);
|
||||
AMS_ABORT();
|
||||
}
|
||||
|
||||
Result DriverImpl::GetDebounceEnabled(bool *out, Pad *pad) const {
|
||||
/* TODO */
|
||||
AMS_UNUSED(out, pad);
|
||||
AMS_ABORT();
|
||||
}
|
||||
|
||||
Result DriverImpl::SetDebounceEnabled(Pad *pad, bool en) {
|
||||
AMS_UNUSED(pad, en);
|
||||
/* TODO */
|
||||
AMS_ABORT();
|
||||
}
|
||||
|
||||
Result DriverImpl::GetDebounceTime(s32 *out_ms, Pad *pad) const {
|
||||
/* TODO */
|
||||
AMS_UNUSED(out_ms, pad);
|
||||
AMS_ABORT();
|
||||
}
|
||||
|
||||
Result DriverImpl::SetDebounceTime(Pad *pad, s32 ms) {
|
||||
/* TODO */
|
||||
AMS_UNUSED(pad, ms);
|
||||
AMS_ABORT();
|
||||
}
|
||||
|
||||
Result DriverImpl::GetUnknown22(u32 *out) {
|
||||
/* TODO */
|
||||
AMS_UNUSED(out);
|
||||
AMS_ABORT();
|
||||
}
|
||||
|
||||
|
@ -301,21 +309,25 @@ namespace ams::gpio::driver::board::nintendo::nx::impl {
|
|||
|
||||
Result DriverImpl::SetValueForSleepState(Pad *pad, GpioValue value) {
|
||||
/* TODO */
|
||||
AMS_UNUSED(pad, value);
|
||||
AMS_ABORT();
|
||||
}
|
||||
|
||||
Result DriverImpl::IsWakeEventActive(bool *out, Pad *pad) const {
|
||||
/* TODO */
|
||||
AMS_UNUSED(out, pad);
|
||||
AMS_ABORT();
|
||||
}
|
||||
|
||||
Result DriverImpl::SetWakeEventActiveFlagSetForDebug(Pad *pad, bool en) {
|
||||
/* TODO */
|
||||
AMS_UNUSED(pad, en);
|
||||
AMS_ABORT();
|
||||
}
|
||||
|
||||
Result DriverImpl::SetWakePinDebugMode(WakePinDebugMode mode) {
|
||||
/* TODO */
|
||||
AMS_UNUSED(mode);
|
||||
AMS_ABORT();
|
||||
}
|
||||
|
||||
|
|
|
@ -28,21 +28,25 @@ namespace ams::gpio::driver::board::nintendo::nx::impl {
|
|||
|
||||
void SuspendHandler::SetValueForSleepState(TegraPad *pad, GpioValue value) {
|
||||
/* TODO */
|
||||
AMS_UNUSED(pad, value);
|
||||
AMS_ABORT();
|
||||
}
|
||||
|
||||
Result SuspendHandler::IsWakeEventActive(bool *out, TegraPad *pad) const {
|
||||
/* TODO */
|
||||
AMS_UNUSED(out, pad);
|
||||
AMS_ABORT();
|
||||
}
|
||||
|
||||
Result SuspendHandler::SetWakeEventActiveFlagSetForDebug(TegraPad *pad, bool en) {
|
||||
/* TODO */
|
||||
AMS_UNUSED(pad, en);
|
||||
AMS_ABORT();
|
||||
}
|
||||
|
||||
void SuspendHandler::SetWakePinDebugMode(WakePinDebugMode mode) {
|
||||
/* TODO */
|
||||
AMS_UNUSED(mode);
|
||||
AMS_ABORT();
|
||||
}
|
||||
|
||||
|
|
|
@ -366,7 +366,7 @@ namespace ams::gpio::driver::board::nintendo::nx::impl {
|
|||
|
||||
void SetParameters(int pad, const PadInfo &i) {
|
||||
Base::SetPadNumber(pad);
|
||||
this->info = info;
|
||||
this->info = i;
|
||||
}
|
||||
|
||||
bool IsLinkedToInterruptBoundPadList() const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue