1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 04:18:10 +00:00

refactor(legacy): fix empty parameter list warnings

[no changelog]
This commit is contained in:
Ondřej Vejpustek 2024-04-16 13:45:31 +02:00
parent 68c83f54cb
commit 9a4215581e
6 changed files with 8 additions and 8 deletions

View File

@ -25,7 +25,7 @@ struct buttonState button;
uint16_t buttonRead(void) { return gpio_port_read(BTN_PORT); }
#endif
void buttonUpdate() {
void buttonUpdate(void) {
static uint16_t last_state = BTN_PIN_YES | BTN_PIN_NO;
uint16_t state = buttonRead();

View File

@ -96,7 +96,7 @@ void hal_delay(uint32_t ms) {
#endif
}
void drbg_init() {
void drbg_init(void) {
uint8_t entropy[48] = {0};
random_buffer(entropy, sizeof(entropy));
hmac_drbg_init(&drbg_ctx, entropy, sizeof(entropy), NULL, 0);

View File

@ -979,7 +979,7 @@ void config_setU2FCounter(uint32_t u2fcounter) {
storage_set_counter(KEY_U2F_COUNTER, u2fcounter);
}
uint32_t config_getAutoLockDelayMs() {
uint32_t config_getAutoLockDelayMs(void) {
if (sectrue == autoLockDelayMsCached) {
return autoLockDelayMs;
}

View File

@ -538,7 +538,7 @@ void fsm_msgSetU2FCounter(const SetU2FCounter *msg) {
layoutHome();
}
void fsm_msgGetNextU2FCounter() {
void fsm_msgGetNextU2FCounter(void) {
CHECK_PIN
layoutDialogSwipe(&bmp_icon_question, _("Cancel"), _("Confirm"), NULL,

View File

@ -1349,7 +1349,7 @@ void stellar_fillSignedTx(StellarSignedTx *resp) {
resp->signature.size = sizeof(signature);
}
bool stellar_allOperationsConfirmed() {
bool stellar_allOperationsConfirmed(void) {
return stellar_activeTx.confirmed_operations ==
stellar_activeTx.num_operations;
}

View File

@ -177,9 +177,9 @@ void oledInit() {
/*
* Clears the display buffer (sets all pixels to black)
*/
void oledClear() { memzero(_oledbuffer, sizeof(_oledbuffer)); }
void oledClear(void) { memzero(_oledbuffer, sizeof(_oledbuffer)); }
void oledInvertDebugLink() {
void oledInvertDebugLink(void) {
#if DEBUG_LINK
oledInvertPixel(OLED_WIDTH - 5, 0);
oledInvertPixel(OLED_WIDTH - 4, 0);
@ -229,7 +229,7 @@ void oledRefresh() {
}
#endif
const uint8_t *oledGetBuffer() { return _oledbuffer; }
const uint8_t *oledGetBuffer(void) { return _oledbuffer; }
void oledSetBuffer(uint8_t *buf) {
memcpy(_oledbuffer, buf, sizeof(_oledbuffer));