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

@@ -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();
}

View File

@@ -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();
}

View File

@@ -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 {

View File

@@ -28,6 +28,7 @@ namespace ams::gpio {
/* Actual commands. */
Result OpenSessionForDev(ams::sf::Out<ams::sf::SharedPointer<gpio::sf::IPadSession>> out, s32 pad_descriptor) {
/* TODO: libnx bindings */
AMS_UNUSED(out, pad_descriptor);
AMS_ABORT();
}
@@ -35,6 +36,7 @@ namespace ams::gpio {
Result OpenSessionForTest(ams::sf::Out<ams::sf::SharedPointer<gpio::sf::IPadSession>> out, gpio::GpioPadName pad_name) {
/* TODO: libnx bindings */
AMS_UNUSED(out, pad_name);
AMS_ABORT();
}
@@ -44,16 +46,19 @@ namespace ams::gpio {
Result GetWakeEventActiveFlagSet(ams::sf::Out<gpio::WakeBitFlag> out) {
/* TODO: libnx bindings */
AMS_UNUSED(out);
AMS_ABORT();
}
Result SetWakeEventActiveFlagSetForDebug(gpio::GpioPadName pad_name, bool is_enabled) {
/* TODO: libnx bindings */
AMS_UNUSED(pad_name, is_enabled);
AMS_ABORT();
}
Result SetWakePinDebugMode(s32 mode) {
/* TODO: libnx bindings */
AMS_UNUSED(mode);
AMS_ABORT();
}
@@ -65,11 +70,13 @@ namespace ams::gpio {
Result SetWakeEventActiveFlagSetForDebug2(DeviceCode device_code, bool is_enabled) {
/* TODO: libnx bindings */
AMS_UNUSED(device_code, is_enabled);
AMS_ABORT();
}
Result SetRetryValues(u32 arg0, u32 arg1) {
/* TODO: libnx bindings */
AMS_UNUSED(arg0, arg1);
AMS_ABORT();
}

View File

@@ -100,11 +100,13 @@ namespace ams::gpio {
Result SetValueForSleepState(gpio::GpioValue value) {
/* TODO: libnx bindings. */
AMS_UNUSED(value);
AMS_ABORT();
}
Result GetValueForSleepState(ams::sf::Out<gpio::GpioValue> out) {
/* TODO: libnx bindings. */
AMS_UNUSED(out);
AMS_ABORT();
}
};

View File

@@ -29,6 +29,7 @@ namespace ams::gpio::server {
Result ManagerImpl::OpenSessionForDev(ams::sf::Out<ams::sf::SharedPointer<gpio::sf::IPadSession>> out, s32 pad_descriptor) {
/* TODO */
AMS_UNUSED(out, pad_descriptor);
AMS_ABORT();
}
@@ -38,26 +39,31 @@ namespace ams::gpio::server {
Result ManagerImpl::OpenSessionForTest(ams::sf::Out<ams::sf::SharedPointer<gpio::sf::IPadSession>> out, gpio::GpioPadName pad_name) {
/* TODO */
AMS_UNUSED(out, pad_name);
AMS_ABORT();
}
Result ManagerImpl::IsWakeEventActive(ams::sf::Out<bool> out, gpio::GpioPadName pad_name) {
/* TODO */
AMS_UNUSED(out, pad_name);
AMS_ABORT();
}
Result ManagerImpl::GetWakeEventActiveFlagSet(ams::sf::Out<gpio::WakeBitFlag> out) {
/* TODO */
AMS_UNUSED(out);
AMS_ABORT();
}
Result ManagerImpl::SetWakeEventActiveFlagSetForDebug(gpio::GpioPadName pad_name, bool is_enabled) {
/* TODO */
AMS_UNUSED(pad_name, is_enabled);
AMS_ABORT();
}
Result ManagerImpl::SetWakePinDebugMode(s32 mode) {
/* TODO */
AMS_UNUSED(mode);
AMS_ABORT();
}
@@ -75,16 +81,19 @@ namespace ams::gpio::server {
Result ManagerImpl::IsWakeEventActive2(ams::sf::Out<bool> out, DeviceCode device_code) {
/* TODO */
AMS_UNUSED(out, device_code);
AMS_ABORT();
}
Result ManagerImpl::SetWakeEventActiveFlagSetForDebug2(DeviceCode device_code, bool is_enabled) {
/* TODO */
AMS_UNUSED(device_code, is_enabled);
AMS_ABORT();
}
Result ManagerImpl::SetRetryValues(u32 arg0, u32 arg1) {
/* TODO */
AMS_UNUSED(arg0, arg1);
AMS_ABORT();
}

View File

@@ -72,6 +72,7 @@ namespace ams::gpio::server {
AMS_ASSERT(this->has_session);
/* TODO */
AMS_UNUSED(mode);
AMS_ABORT();
}
@@ -80,6 +81,7 @@ namespace ams::gpio::server {
AMS_ASSERT(this->has_session);
/* TODO */
AMS_UNUSED(out);
AMS_ABORT();
}
@@ -88,6 +90,7 @@ namespace ams::gpio::server {
AMS_ASSERT(this->has_session);
/* TODO */
AMS_UNUSED(enable);
AMS_ABORT();
}
@@ -96,6 +99,7 @@ namespace ams::gpio::server {
AMS_ASSERT(this->has_session);
/* TODO */
AMS_UNUSED(out);
AMS_ABORT();
}
@@ -104,6 +108,7 @@ namespace ams::gpio::server {
AMS_ASSERT(this->has_session);
/* TODO */
AMS_UNUSED(out);
AMS_ABORT();
}
@@ -143,6 +148,7 @@ namespace ams::gpio::server {
AMS_ASSERT(this->has_session);
/* TODO */
AMS_UNUSED(out);
AMS_ABORT();
}
@@ -159,6 +165,7 @@ namespace ams::gpio::server {
AMS_ASSERT(this->has_session);
/* TODO */
AMS_UNUSED(enable);
AMS_ABORT();
}
@@ -167,6 +174,7 @@ namespace ams::gpio::server {
AMS_ASSERT(this->has_session);
/* TODO */
AMS_UNUSED(out);
AMS_ABORT();
}
@@ -175,6 +183,7 @@ namespace ams::gpio::server {
AMS_ASSERT(this->has_session);
/* TODO */
AMS_UNUSED(ms);
AMS_ABORT();
}
@@ -183,6 +192,7 @@ namespace ams::gpio::server {
AMS_ASSERT(this->has_session);
/* TODO */
AMS_UNUSED(out);
AMS_ABORT();
}
@@ -191,6 +201,7 @@ namespace ams::gpio::server {
AMS_ASSERT(this->has_session);
/* TODO */
AMS_UNUSED(value);
AMS_ABORT();
}
@@ -199,6 +210,7 @@ namespace ams::gpio::server {
AMS_ASSERT(this->has_session);
/* TODO */
AMS_UNUSED(out);
AMS_ABORT();
}
};