The array itself is read-only, so mark it const.
+2021-09-14 Mike Frysinger <vapier@gentoo.org>
+
+ * sid.scm (sim_machs): Mark array const.
+ * sim.scm (sim_machs): Likewise.
+
2021-09-10 Mike Frysinger <vapier@gentoo.org>
* desc-cpu.scm: Include stdlib.h.
(define (/gen-mach-data)
(string-append
- "const MACH *sim_machs[] =\n{\n"
+ "const MACH * const sim_machs[] =\n{\n"
(string-map (lambda (mach)
(gen-obj-sanitize
mach
(define (/gen-mach-data)
(string-append
- "const SIM_MACH *sim_machs[] =\n{\n"
+ "const SIM_MACH * const sim_machs[] =\n{\n"
(string-map (lambda (mach)
(gen-obj-sanitize
mach