Skip to content

Commit

Permalink
clang 16 does not consider function pointers to be const
Browse files Browse the repository at this point in the history
Fixes #105
  • Loading branch information
mywave82 committed Aug 5, 2023
1 parent a94927c commit 638a348
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions filesel/filesystem-file-dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ struct DevInterfaceAPI_t
const struct dmDrive *dmFile;
#endif

const void (*KeyHelp) (uint16_t key, const char *shorthelp); /* Called on ALT-K to issue help about each keyboard shortcut */
const void (*KeyHelpClear) (void); /* Clears the current keyboard shortcut list, only used by keyboard/display loops */
const int (*KeyHelpDisplay) (void); /* Draws the keyboard shortcut list and polls keyboard. Call for each draw-iteration until it returns zero */
void (*KeyHelp) (uint16_t key, const char *shorthelp); /* Called on ALT-K to issue help about each keyboard shortcut */
void (*KeyHelpClear) (void); /* Clears the current keyboard shortcut list, only used by keyboard/display loops */
int (*KeyHelpDisplay) (void); /* Draws the keyboard shortcut list and polls keyboard. Call for each draw-iteration until it returns zero */

const void (*fsDraw) (void); /* Draws the filesystem browser, great for virtual devices that has a dialog */
void (*fsDraw) (void); /* Draws the filesystem browser, great for virtual devices that has a dialog */
};

struct IOCTL_DevInterface
Expand Down

0 comments on commit 638a348

Please sign in to comment.