sim: ppc: enable -Wmissing-declarations & -Wmissing-prototypes

This aligns with common code which already uses this flag.  We have
to add another local prototype to fix the failure, and add another
local decl for the SIM_DESC type.  Unwinding these will require a
lot more work & conversions in the process, so going with the decl
for now unblocks the warning unification.
This commit is contained in:
Mike Frysinger
2021-09-08 21:49:00 -04:00
parent aa0380cc7e
commit 0c320e1bdc
3 changed files with 11 additions and 4 deletions

View File

@@ -103,6 +103,13 @@ sim_io_read_stdin
void sim_io_flush_stdoutput
(void);
/* TODO: Untangle this SIM_DESC forward decl someday. */
typedef struct sim_state *SIM_DESC;
void sim_io_error (SIM_DESC sd,
const char *fmt,
...)
ATTRIBUTE_PRINTF (2, 3)
ATTRIBUTE_NORETURN;
/* Simulator instance. */
extern psim *simulator;