fix sdcc 4.3.0 #14184 build error - error 283: function declarator with no prototype

This commit is contained in:
Matt Parnell
2023-09-08 23:09:24 -05:00
committed by Tim Crawford
parent 181d4c5d59
commit bb1ce2273b
3 changed files with 5 additions and 5 deletions

View File

@ -41,7 +41,7 @@ void pnp_write(uint8_t reg, uint8_t data) {
ec2i_write(0x2F, data);
}
void pnp_enable() {
void pnp_enable(void) {
DEBUG("Enable PNP devices\n");
// Enable PMC1

View File

@ -3,7 +3,7 @@
#ifndef _COMMON_VERSION_H
#define _COMMON_VERSION_H
const char *board();
const char *version();
const char *board(void);
const char *version(void);
#endif // _COMMON_VERSION_H

View File

@ -17,10 +17,10 @@ static const char __code VERSION[] =
xstr(__FIRMWARE_VERSION__);
// clang-format on
const char *board() {
const char *board(void) {
return &BOARD[11];
}
const char *version() {
const char *version(void) {
return &VERSION[13];
}