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.
-Wno-switch -Wno-char-subscripts
-Wempty-body -Wunused-but-set-parameter
-Wno-error=maybe-uninitialized
--Wno-missing-declarations
--Wno-missing-prototypes
+-Wmissing-declarations
+-Wmissing-prototypes
-Wdeclaration-after-statement -Wmissing-parameter-type
-Wno-pointer-sign
-Wold-style-declaration -Wold-style-definition
-Wno-switch -Wno-char-subscripts
-Wempty-body -Wunused-but-set-parameter
-Wno-error=maybe-uninitialized
--Wno-missing-declarations
--Wno-missing-prototypes
+-Wmissing-declarations
+-Wmissing-prototypes
-Wdeclaration-after-statement -Wmissing-parameter-type
-Wno-pointer-sign
-Wold-style-declaration -Wold-style-definition
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;