-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake.log.txt
More file actions
2983 lines (2983 loc) · 240 KB
/
make.log.txt
File metadata and controls
2983 lines (2983 loc) · 240 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
In file included from src/emulator.c:3:
src/musashi/m68k.h:187:15: warning: redundant redeclaration of ‘m68k_read_memory_8’ [-Wredundant-decls]
187 | unsigned int m68k_read_memory_8(unsigned int address);
| ^~~~~~~~~~~~~~~~~~
In file included from src/musashi/m68kconf.h:35,
from src/musashi/m68k.h:54:
./src/emulator.h:27:14: note: previous declaration of ‘m68k_read_memory_8’ with type ‘unsigned int(unsigned int)’
27 | unsigned int m68k_read_memory_8(unsigned int address);
| ^~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:188:15: warning: redundant redeclaration of ‘m68k_read_memory_16’ [-Wredundant-decls]
188 | unsigned int m68k_read_memory_16(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
./src/emulator.h:28:14: note: previous declaration of ‘m68k_read_memory_16’ with type ‘unsigned int(unsigned int)’
28 | unsigned int m68k_read_memory_16(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:189:15: warning: redundant redeclaration of ‘m68k_read_memory_32’ [-Wredundant-decls]
189 | unsigned int m68k_read_memory_32(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
./src/emulator.h:29:14: note: previous declaration of ‘m68k_read_memory_32’ with type ‘unsigned int(unsigned int)’
29 | unsigned int m68k_read_memory_32(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:182:34: warning: redundant redeclaration of ‘m68k_read_memory_8’ [-Wredundant-decls]
182 | #define m68k_read_disassembler_8 m68k_read_memory_8
| ^~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:201:14: note: in expansion of macro ‘m68k_read_disassembler_8’
201 | unsigned int m68k_read_disassembler_8 (unsigned int address);
| ^~~~~~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:187:15: note: previous declaration of ‘m68k_read_memory_8’ with type ‘unsigned int(unsigned int)’
187 | unsigned int m68k_read_memory_8(unsigned int address);
| ^~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:183:35: warning: redundant redeclaration of ‘m68k_read_memory_16’ [-Wredundant-decls]
183 | #define m68k_read_disassembler_16 m68k_read_memory_16
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:202:14: note: in expansion of macro ‘m68k_read_disassembler_16’
202 | unsigned int m68k_read_disassembler_16 (unsigned int address);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:188:15: note: previous declaration of ‘m68k_read_memory_16’ with type ‘unsigned int(unsigned int)’
188 | unsigned int m68k_read_memory_16(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:184:35: warning: redundant redeclaration of ‘m68k_read_memory_32’ [-Wredundant-decls]
184 | #define m68k_read_disassembler_32 m68k_read_memory_32
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:203:14: note: in expansion of macro ‘m68k_read_disassembler_32’
203 | unsigned int m68k_read_disassembler_32 (unsigned int address);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:189:15: note: previous declaration of ‘m68k_read_memory_32’ with type ‘unsigned int(unsigned int)’
189 | unsigned int m68k_read_memory_32(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:206:6: warning: redundant redeclaration of ‘m68k_write_memory_8’ [-Wredundant-decls]
206 | void m68k_write_memory_8(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~
./src/emulator.h:30:6: note: previous declaration of ‘m68k_write_memory_8’ with type ‘void(unsigned int, unsigned int)’
30 | void m68k_write_memory_8(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:207:6: warning: redundant redeclaration of ‘m68k_write_memory_16’ [-Wredundant-decls]
207 | void m68k_write_memory_16(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~
./src/emulator.h:31:6: note: previous declaration of ‘m68k_write_memory_16’ with type ‘void(unsigned int, unsigned int)’
31 | void m68k_write_memory_16(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:208:6: warning: redundant redeclaration of ‘m68k_write_memory_32’ [-Wredundant-decls]
208 | void m68k_write_memory_32(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~
./src/emulator.h:32:6: note: previous declaration of ‘m68k_write_memory_32’ with type ‘void(unsigned int, unsigned int)’
32 | void m68k_write_memory_32(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:227:6: warning: redundant redeclaration of ‘m68k_write_memory_32_pd’ [-Wredundant-decls]
227 | void m68k_write_memory_32_pd(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~~~~
./src/emulator.h:33:6: note: previous declaration of ‘m68k_write_memory_32_pd’ with type ‘void(unsigned int, unsigned int)’
33 | void m68k_write_memory_32_pd(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from src/musashi/m68kcpu.h:43,
from src/emulator.c:7:
src/musashi/m68kcpu.h: In function ‘m68ki_write_16_fc’:
src/musashi/m68kcpu.h:1534:80: warning: conversion from ‘uint’ {aka ‘unsigned int’} to ‘__uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
1534 | ps_store_u16(cache->offset + (address - cache->lower), htobe16(value));
| ^~~~~
src/musashi/m68kcpu.h:1541:103: warning: conversion from ‘uint’ {aka ‘unsigned int’} to ‘__uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
1541 | ps_store_u16(state->write_data[i] + (address - state->write_addr[i]), htobe16(value));
| ^~~~~
src/musashi/m68kcpu.h: In function ‘m68ki_get_ea_pcdi’:
src/musashi/m68kcpu.h:1641:23: warning: conversion to ‘uint’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
1641 | return old_pc + MAKE_INT_16(m68ki_read_imm_16(state));
| ^
src/musashi/m68kcpu.h: In function ‘m68ki_get_ea_ix’:
src/musashi/m68kcpu.h:187:32: warning: conversion to ‘uint’ {aka ‘unsigned int’} from ‘short int’ may change the sign of the result [-Wsign-conversion]
187 | #define MAKE_INT_16(A) (sint16)(int16_t)(A)
| ^
src/musashi/m68kcpu.h:1706:30: note: in expansion of macro ‘MAKE_INT_16’
1706 | Xn = MAKE_INT_16(Xn);
| ^~~~~~~~~~~
src/musashi/m68kcpu.h:1709:32: warning: conversion to ‘uint’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
1709 | return An + Xn + MAKE_INT_8(extension);
| ^
src/musashi/m68kcpu.h:187:32: warning: conversion to ‘uint’ {aka ‘unsigned int’} from ‘short int’ may change the sign of the result [-Wsign-conversion]
187 | #define MAKE_INT_16(A) (sint16)(int16_t)(A)
| ^
src/musashi/m68kcpu.h:1718:30: note: in expansion of macro ‘MAKE_INT_16’
1718 | Xn = MAKE_INT_16(Xn);
| ^~~~~~~~~~~
src/musashi/m68kcpu.h:1724:32: warning: conversion to ‘uint’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
1724 | return An + Xn + MAKE_INT_8(extension);
| ^
src/musashi/m68kcpu.h:187:32: warning: conversion to ‘uint’ {aka ‘unsigned int’} from ‘short int’ may change the sign of the result [-Wsign-conversion]
187 | #define MAKE_INT_16(A) (sint16)(int16_t)(A)
| ^
src/musashi/m68kcpu.h:1740:30: note: in expansion of macro ‘MAKE_INT_16’
1740 | Xn = MAKE_INT_16(Xn);
| ^~~~~~~~~~~
src/musashi/m68kcpu.h: In function ‘OPER_AY_DI_8’:
src/musashi/m68kcpu.h:804:27: warning: conversion to ‘uint’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
804 | #define EA_AY_DI_8() (AY+MAKE_INT_16(m68ki_read_imm_16(state))) /* displacement */
| ^
src/musashi/m68kcpu.h:1775:67: note: in expansion of macro ‘EA_AY_DI_8’
1775 | static inline uint OPER_AY_DI_8(m68ki_cpu_core *state) {uint ea = EA_AY_DI_8(); return m68ki_read_8(state, ea); }
| ^~~~~~~~~~
src/musashi/m68kcpu.h: In function ‘OPER_AY_DI_16’:
src/musashi/m68kcpu.h:804:27: warning: conversion to ‘uint’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
804 | #define EA_AY_DI_8() (AY+MAKE_INT_16(m68ki_read_imm_16(state))) /* displacement */
| ^
src/musashi/m68kcpu.h:805:24: note: in expansion of macro ‘EA_AY_DI_8’
805 | #define EA_AY_DI_16() EA_AY_DI_8()
| ^~~~~~~~~~
src/musashi/m68kcpu.h:1776:68: note: in expansion of macro ‘EA_AY_DI_16’
1776 | static inline uint OPER_AY_DI_16(m68ki_cpu_core *state) {uint ea = EA_AY_DI_16(); return m68ki_read_16(state, ea);}
| ^~~~~~~~~~~
src/musashi/m68kcpu.h: In function ‘OPER_AY_DI_32’:
src/musashi/m68kcpu.h:804:27: warning: conversion to ‘uint’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
804 | #define EA_AY_DI_8() (AY+MAKE_INT_16(m68ki_read_imm_16(state))) /* displacement */
| ^
src/musashi/m68kcpu.h:806:24: note: in expansion of macro ‘EA_AY_DI_8’
806 | #define EA_AY_DI_32() EA_AY_DI_8()
| ^~~~~~~~~~
src/musashi/m68kcpu.h:1777:68: note: in expansion of macro ‘EA_AY_DI_32’
1777 | static inline uint OPER_AY_DI_32(m68ki_cpu_core *state) {uint ea = EA_AY_DI_32(); return m68ki_read_32(state, ea);}
| ^~~~~~~~~~~
src/musashi/m68kcpu.h: In function ‘OPER_AX_DI_8’:
src/musashi/m68kcpu.h:820:27: warning: conversion to ‘uint’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
820 | #define EA_AX_DI_8() (AX+MAKE_INT_16(m68ki_read_imm_16(state)))
| ^
src/musashi/m68kcpu.h:1791:67: note: in expansion of macro ‘EA_AX_DI_8’
1791 | static inline uint OPER_AX_DI_8(m68ki_cpu_core *state) {uint ea = EA_AX_DI_8(); return m68ki_read_8(state, ea); }
| ^~~~~~~~~~
src/musashi/m68kcpu.h: In function ‘OPER_AX_DI_16’:
src/musashi/m68kcpu.h:820:27: warning: conversion to ‘uint’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
820 | #define EA_AX_DI_8() (AX+MAKE_INT_16(m68ki_read_imm_16(state)))
| ^
src/musashi/m68kcpu.h:821:24: note: in expansion of macro ‘EA_AX_DI_8’
821 | #define EA_AX_DI_16() EA_AX_DI_8()
| ^~~~~~~~~~
src/musashi/m68kcpu.h:1792:68: note: in expansion of macro ‘EA_AX_DI_16’
1792 | static inline uint OPER_AX_DI_16(m68ki_cpu_core *state) {uint ea = EA_AX_DI_16(); return m68ki_read_16(state, ea);}
| ^~~~~~~~~~~
src/musashi/m68kcpu.h: In function ‘OPER_AX_DI_32’:
src/musashi/m68kcpu.h:820:27: warning: conversion to ‘uint’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
820 | #define EA_AX_DI_8() (AX+MAKE_INT_16(m68ki_read_imm_16(state)))
| ^
src/musashi/m68kcpu.h:822:24: note: in expansion of macro ‘EA_AX_DI_8’
822 | #define EA_AX_DI_32() EA_AX_DI_8()
| ^~~~~~~~~~
src/musashi/m68kcpu.h:1793:68: note: in expansion of macro ‘EA_AX_DI_32’
1793 | static inline uint OPER_AX_DI_32(m68ki_cpu_core *state) {uint ea = EA_AX_DI_32(); return m68ki_read_32(state, ea);}
| ^~~~~~~~~~~
src/musashi/m68kcpu.h: In function ‘OPER_AW_8’:
src/musashi/m68kcpu.h:187:32: warning: conversion to ‘uint’ {aka ‘unsigned int’} from ‘short int’ may change the sign of the result [-Wsign-conversion]
187 | #define MAKE_INT_16(A) (sint16)(int16_t)(A)
| ^
src/musashi/m68kcpu.h:830:24: note: in expansion of macro ‘MAKE_INT_16’
830 | #define EA_AW_8() MAKE_INT_16(m68ki_read_imm_16(state)) /* absolute word */
| ^~~~~~~~~~~
src/musashi/m68kcpu.h:1801:64: note: in expansion of macro ‘EA_AW_8’
1801 | static inline uint OPER_AW_8(m68ki_cpu_core *state) {uint ea = EA_AW_8(); return m68ki_read_8(state, ea); }
| ^~~~~~~
src/musashi/m68kcpu.h: In function ‘OPER_AW_16’:
src/musashi/m68kcpu.h:187:32: warning: conversion to ‘uint’ {aka ‘unsigned int’} from ‘short int’ may change the sign of the result [-Wsign-conversion]
187 | #define MAKE_INT_16(A) (sint16)(int16_t)(A)
| ^
src/musashi/m68kcpu.h:830:24: note: in expansion of macro ‘MAKE_INT_16’
830 | #define EA_AW_8() MAKE_INT_16(m68ki_read_imm_16(state)) /* absolute word */
| ^~~~~~~~~~~
src/musashi/m68kcpu.h:831:24: note: in expansion of macro ‘EA_AW_8’
831 | #define EA_AW_16() EA_AW_8()
| ^~~~~~~
src/musashi/m68kcpu.h:1802:65: note: in expansion of macro ‘EA_AW_16’
1802 | static inline uint OPER_AW_16(m68ki_cpu_core *state) {uint ea = EA_AW_16(); return m68ki_read_16(state, ea);}
| ^~~~~~~~
src/musashi/m68kcpu.h: In function ‘OPER_AW_32’:
src/musashi/m68kcpu.h:187:32: warning: conversion to ‘uint’ {aka ‘unsigned int’} from ‘short int’ may change the sign of the result [-Wsign-conversion]
187 | #define MAKE_INT_16(A) (sint16)(int16_t)(A)
| ^
src/musashi/m68kcpu.h:830:24: note: in expansion of macro ‘MAKE_INT_16’
830 | #define EA_AW_8() MAKE_INT_16(m68ki_read_imm_16(state)) /* absolute word */
| ^~~~~~~~~~~
src/musashi/m68kcpu.h:832:24: note: in expansion of macro ‘EA_AW_8’
832 | #define EA_AW_32() EA_AW_8()
| ^~~~~~~
src/musashi/m68kcpu.h:1803:65: note: in expansion of macro ‘EA_AW_32’
1803 | static inline uint OPER_AW_32(m68ki_cpu_core *state) {uint ea = EA_AW_32(); return m68ki_read_32(state, ea);}
| ^~~~~~~~
src/musashi/m68kcpu.h: In function ‘m68ki_branch_8’:
src/musashi/m68kcpu.h:1895:16: warning: conversion to ‘uint’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
1895 | REG_PC += MAKE_INT_8(offset);
| ^~
src/musashi/m68kcpu.h: In function ‘m68ki_branch_16’:
src/musashi/m68kcpu.h:1900:16: warning: conversion to ‘uint’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
1900 | REG_PC += MAKE_INT_16(offset);
| ^~
src/musashi/m68kcpu.h: In function ‘m68ki_init_exception’:
src/musashi/m68kcpu.h:946:75: warning: conversion to ‘uint’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
946 | (COND_MI() >> 4) | \
| ^
src/musashi/m68kcpu.h:957:58: note: in expansion of macro ‘m68ki_get_ccr’
957 | m68ki_get_ccr(state))
| ^~~~~~~~~~~~~
src/musashi/m68kcpu.h:2001:19: note: in expansion of macro ‘m68ki_get_sr’
2001 | uint sr = m68ki_get_sr();
| ^~~~~~~~~~~~
src/musashi/m68kcpu.h: In function ‘m68ki_stack_frame_1010’:
src/musashi/m68kcpu.h:2163:62: warning: conversion to ‘uint’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
2163 | m68ki_push_16(state, 0x0100 | orig_fc | orig_rw << 6 | orig_sz << 4);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
src/musashi/m68kcpu.h: In function ‘m68ki_stack_frame_1011’:
src/musashi/m68kcpu.h:2238:64: warning: conversion to ‘uint’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
2238 | m68ki_push_16(state, 0x0100 | orig_fc | (orig_rw << 6) | (orig_sz << 4));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
src/musashi/m68kcpu.h: In function ‘m68ki_stack_frame_0111’:
src/musashi/m68kcpu.h:2282:61: warning: conversion to ‘uint’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
2282 | m68ki_push_16(state, (in_mmu ? 0x400 : 0) | orig_fc | (orig_rw << 8));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
src/musashi/m68kcpu.h: In function ‘m68ki_exception_illegal’:
src/musashi/m68kcpu.h:428:31: warning: conversion to ‘int’ from ‘uint’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
428 | #define REG_IR state->ir
| ~~~~~^~~~
src/musashi/m68kcpu.h:629:80: note: in definition of macro ‘m68ki_illg_callback’
629 | #define m68ki_illg_callback(state, opcode) CALLBACK_ILLG_INSTR(opcode)
| ^~~~~~
src/musashi/m68kcpu.h:2456:40: note: in expansion of macro ‘REG_IR’
2456 | if (m68ki_illg_callback(state, REG_IR))
| ^~~~~~
In file included from src/emulator.c:25:
src/memory_mapped.h: At top level:
src/memory_mapped.h:48:5: warning: redundant redeclaration of ‘handle_mapped_read’ [-Wredundant-decls]
48 | int handle_mapped_read(struct emulator_config* cfg,
| ^~~~~~~~~~~~~~~~~~
In file included from src/platforms/platforms.h:3,
from src/emulator.c:5:
src/config_file/config_file.h:157:5: note: previous declaration of ‘handle_mapped_read’ with type ‘int(struct emulator_config *, unsigned int, unsigned int *, unsigned char)’
157 | int handle_mapped_read(struct emulator_config* cfg,
| ^~~~~~~~~~~~~~~~~~
src/memory_mapped.h:53:5: warning: redundant redeclaration of ‘handle_mapped_write’ [-Wredundant-decls]
53 | int handle_mapped_write(struct emulator_config* cfg,
| ^~~~~~~~~~~~~~~~~~~
src/config_file/config_file.h:162:5: note: previous declaration of ‘handle_mapped_write’ with type ‘int(struct emulator_config *, unsigned int, unsigned int, unsigned char)’
162 | int handle_mapped_write(struct emulator_config* cfg,
| ^~~~~~~~~~~~~~~~~~~
In file included from src/emulator.c:26:
src/cpu_backend.h:10:5: warning: "USE_UAE_JIT" is not defined, evaluates to 0 [-Wundef]
10 | #if USE_UAE_JIT
| ^~~~~~~~~~~
src/emulator.c:86:5: warning: "USE_UAE_JIT" is not defined, evaluates to 0 [-Wundef]
86 | #if USE_UAE_JIT
| ^~~~~~~~~~~
src/emulator.c:242:5: warning: "USE_UAE_JIT" is not defined, evaluates to 0 [-Wundef]
242 | #if USE_UAE_JIT
| ^~~~~~~~~~~
src/emulator.c:357:21: warning: redundant redeclaration of ‘cpu_type’ [-Wredundant-decls]
357 | extern unsigned int cpu_type;
| ^~~~~~~~
src/emulator.c:138:21: note: previous declaration of ‘cpu_type’ with type ‘unsigned int’
138 | extern unsigned int cpu_type;
| ^~~~~~~~
src/emulator.c:463:5: warning: "USE_UAE_JIT" is not defined, evaluates to 0 [-Wundef]
463 | #if USE_UAE_JIT
| ^~~~~~~~~~~
src/emulator.c:561:23: warning: redundant redeclaration of ‘m68ki_cpu’ [-Wredundant-decls]
561 | extern m68ki_cpu_core m68ki_cpu;
| ^~~~~~~~~
src/musashi/m68kcpu.h:1180:23: note: previous declaration of ‘m68ki_cpu’ with type ‘m68ki_cpu_core’
1180 | extern m68ki_cpu_core m68ki_cpu;
| ^~~~~~~~~
src/emulator.c: In function ‘ipl_task’:
src/emulator.c:697:5: warning: "USE_UAE_JIT" is not defined, evaluates to 0 [-Wundef]
697 | #if USE_UAE_JIT
| ^~~~~~~~~~~
src/emulator.c: In function ‘musashi_backend_set_irq’:
src/emulator.c:563:56: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
563 | #define M68K_SET_IRQ(i) m68k_set_irq_state(&m68ki_cpu, (i))
| ^~~
src/emulator.c:915:3: note: in expansion of macro ‘M68K_SET_IRQ’
915 | M68K_SET_IRQ(level);
| ^~~~~~~~~~~~
src/emulator.c: At top level:
src/emulator.c:939:6: warning: no previous prototype for ‘jit_backend_execute’ [-Wmissing-prototypes]
939 | void jit_backend_execute(m68ki_cpu_core* state, int cycles) {
| ^~~~~~~~~~~~~~~~~~~
src/emulator.c:943:6: warning: no previous prototype for ‘jit_backend_set_irq’ [-Wmissing-prototypes]
943 | void jit_backend_set_irq(int level) {
| ^~~~~~~~~~~~~~~~~~~
src/emulator.c: In function ‘cpu_task’:
src/emulator.c:973:5: warning: "USE_UAE_JIT" is not defined, evaluates to 0 [-Wundef]
973 | #if USE_UAE_JIT
| ^~~~~~~~~~~
src/emulator.c: In function ‘main’:
src/emulator.c:1475:5: warning: "USE_UAE_JIT" is not defined, evaluates to 0 [-Wundef]
1475 | #if USE_UAE_JIT
| ^~~~~~~~~~~
src/emulator.c:1618:5: warning: "USE_UAE_JIT" is not defined, evaluates to 0 [-Wundef]
1618 | #if USE_UAE_JIT
| ^~~~~~~~~~~
src/emulator.c:1634:5: warning: "USE_UAE_JIT" is not defined, evaluates to 0 [-Wundef]
1634 | #if USE_UAE_JIT
| ^~~~~~~~~~~
src/emulator.c: At top level:
src/emulator.c:1869:6: warning: no previous prototype for ‘cpu_instr_callback’ [-Wmissing-prototypes]
1869 | void cpu_instr_callback(unsigned int pc) {
| ^~~~~~~~~~~~~~~~~~
src/emulator.c:1877:9: warning: redundant redeclaration of ‘cdtv_dmac_reg_idx_read’ [-Wredundant-decls]
1877 | uint8_t cdtv_dmac_reg_idx_read(void);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/emulator.c:10:
src/platforms/amiga/amiga-registers.h:12:9: note: previous declaration of ‘cdtv_dmac_reg_idx_read’ with type ‘uint8_t(void)’ {aka ‘unsigned char(void)’}
12 | uint8_t cdtv_dmac_reg_idx_read(void);
| ^~~~~~~~~~~~~~~~~~~~~~
src/emulator.c:1878:6: warning: redundant redeclaration of ‘cdtv_dmac_reg_idx_write’ [-Wredundant-decls]
1878 | void cdtv_dmac_reg_idx_write(uint8_t value);
| ^~~~~~~~~~~~~~~~~~~~~~~
src/platforms/amiga/amiga-registers.h:13:6: note: previous declaration of ‘cdtv_dmac_reg_idx_write’ with type ‘void(uint8_t)’ {aka ‘void(unsigned char)’}
13 | void cdtv_dmac_reg_idx_write(uint8_t value);
| ^~~~~~~~~~~~~~~~~~~~~~~
src/emulator.c:1879:10: warning: redundant redeclaration of ‘cdtv_dmac_read’ [-Wredundant-decls]
1879 | uint32_t cdtv_dmac_read(uint32_t address, uint8_t type);
| ^~~~~~~~~~~~~~
src/platforms/amiga/amiga-registers.h:14:10: note: previous declaration of ‘cdtv_dmac_read’ with type ‘uint32_t(uint32_t, uint8_t)’ {aka ‘unsigned int(unsigned int, unsigned char)’}
14 | uint32_t cdtv_dmac_read(uint32_t address, uint8_t type);
| ^~~~~~~~~~~~~~
src/emulator.c:1880:6: warning: redundant redeclaration of ‘cdtv_dmac_write’ [-Wredundant-decls]
1880 | void cdtv_dmac_write(uint32_t address, uint32_t value, uint8_t type);
| ^~~~~~~~~~~~~~~
src/platforms/amiga/amiga-registers.h:15:6: note: previous declaration of ‘cdtv_dmac_write’ with type ‘void(uint32_t, uint32_t, uint8_t)’ {aka ‘void(unsigned int, unsigned int, unsigned char)’}
15 | void cdtv_dmac_write(uint32_t address, uint32_t value, uint8_t type);
| ^~~~~~~~~~~~~~~
src/emulator.c: In function ‘set_affinity_for’:
src/emulator.c:2450:3: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
2450 | CPU_SET(core_id, &set);
| ^~~~~~~
In file included from src/memory_mapped.c:4:
src/memory_mapped.h:48:5: warning: redundant redeclaration of ‘handle_mapped_read’ [-Wredundant-decls]
48 | int handle_mapped_read(struct emulator_config* cfg,
| ^~~~~~~~~~~~~~~~~~
In file included from src/memory_mapped.c:3:
src/config_file/config_file.h:157:5: note: previous declaration of ‘handle_mapped_read’ with type ‘int(struct emulator_config *, unsigned int, unsigned int *, unsigned char)’
157 | int handle_mapped_read(struct emulator_config* cfg,
| ^~~~~~~~~~~~~~~~~~
src/memory_mapped.h:53:5: warning: redundant redeclaration of ‘handle_mapped_write’ [-Wredundant-decls]
53 | int handle_mapped_write(struct emulator_config* cfg,
| ^~~~~~~~~~~~~~~~~~~
src/config_file/config_file.h:162:5: note: previous declaration of ‘handle_mapped_write’ with type ‘int(struct emulator_config *, unsigned int, unsigned int, unsigned char)’
162 | int handle_mapped_write(struct emulator_config* cfg,
| ^~~~~~~~~~~~~~~~~~~
In file included from src/memory_mapped.c:5:
src/musashi/m68k.h:187:15: warning: redundant redeclaration of ‘m68k_read_memory_8’ [-Wredundant-decls]
187 | unsigned int m68k_read_memory_8(unsigned int address);
| ^~~~~~~~~~~~~~~~~~
In file included from src/musashi/m68kconf.h:35,
from src/musashi/m68k.h:54:
./src/emulator.h:27:14: note: previous declaration of ‘m68k_read_memory_8’ with type ‘unsigned int(unsigned int)’
27 | unsigned int m68k_read_memory_8(unsigned int address);
| ^~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:188:15: warning: redundant redeclaration of ‘m68k_read_memory_16’ [-Wredundant-decls]
188 | unsigned int m68k_read_memory_16(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
./src/emulator.h:28:14: note: previous declaration of ‘m68k_read_memory_16’ with type ‘unsigned int(unsigned int)’
28 | unsigned int m68k_read_memory_16(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:189:15: warning: redundant redeclaration of ‘m68k_read_memory_32’ [-Wredundant-decls]
189 | unsigned int m68k_read_memory_32(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
./src/emulator.h:29:14: note: previous declaration of ‘m68k_read_memory_32’ with type ‘unsigned int(unsigned int)’
29 | unsigned int m68k_read_memory_32(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:182:34: warning: redundant redeclaration of ‘m68k_read_memory_8’ [-Wredundant-decls]
182 | #define m68k_read_disassembler_8 m68k_read_memory_8
| ^~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:201:14: note: in expansion of macro ‘m68k_read_disassembler_8’
201 | unsigned int m68k_read_disassembler_8 (unsigned int address);
| ^~~~~~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:187:15: note: previous declaration of ‘m68k_read_memory_8’ with type ‘unsigned int(unsigned int)’
187 | unsigned int m68k_read_memory_8(unsigned int address);
| ^~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:183:35: warning: redundant redeclaration of ‘m68k_read_memory_16’ [-Wredundant-decls]
183 | #define m68k_read_disassembler_16 m68k_read_memory_16
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:202:14: note: in expansion of macro ‘m68k_read_disassembler_16’
202 | unsigned int m68k_read_disassembler_16 (unsigned int address);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:188:15: note: previous declaration of ‘m68k_read_memory_16’ with type ‘unsigned int(unsigned int)’
188 | unsigned int m68k_read_memory_16(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:184:35: warning: redundant redeclaration of ‘m68k_read_memory_32’ [-Wredundant-decls]
184 | #define m68k_read_disassembler_32 m68k_read_memory_32
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:203:14: note: in expansion of macro ‘m68k_read_disassembler_32’
203 | unsigned int m68k_read_disassembler_32 (unsigned int address);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:189:15: note: previous declaration of ‘m68k_read_memory_32’ with type ‘unsigned int(unsigned int)’
189 | unsigned int m68k_read_memory_32(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:206:6: warning: redundant redeclaration of ‘m68k_write_memory_8’ [-Wredundant-decls]
206 | void m68k_write_memory_8(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~
./src/emulator.h:30:6: note: previous declaration of ‘m68k_write_memory_8’ with type ‘void(unsigned int, unsigned int)’
30 | void m68k_write_memory_8(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:207:6: warning: redundant redeclaration of ‘m68k_write_memory_16’ [-Wredundant-decls]
207 | void m68k_write_memory_16(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~
./src/emulator.h:31:6: note: previous declaration of ‘m68k_write_memory_16’ with type ‘void(unsigned int, unsigned int)’
31 | void m68k_write_memory_16(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:208:6: warning: redundant redeclaration of ‘m68k_write_memory_32’ [-Wredundant-decls]
208 | void m68k_write_memory_32(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~
./src/emulator.h:32:6: note: previous declaration of ‘m68k_write_memory_32’ with type ‘void(unsigned int, unsigned int)’
32 | void m68k_write_memory_32(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:227:6: warning: redundant redeclaration of ‘m68k_write_memory_32_pd’ [-Wredundant-decls]
227 | void m68k_write_memory_32_pd(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~~~~
./src/emulator.h:33:6: note: previous declaration of ‘m68k_write_memory_32_pd’ with type ‘void(unsigned int, unsigned int)’
33 | void m68k_write_memory_32_pd(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~~~~
src/memory_mapped.c: In function ‘handle_mapped_read’:
src/memory_mapped.c:342:14: warning: declaration of ‘i’ shadows a previous local [-Wshadow]
342 | for (int i = 0; i < MAX_NUM_MAPPED_ITEMS; i++) {
| ^
src/memory_mapped.c:329:9: note: shadowed declaration is here
329 | int i = read_cache_ovl_idx;
| ^
src/memory_mapped.c: In function ‘handle_mapped_write’:
src/memory_mapped.c:481:14: warning: declaration of ‘i’ shadows a previous local [-Wshadow]
481 | for (int i = 0; i < MAX_NUM_MAPPED_ITEMS; i++) {
| ^
src/memory_mapped.c:468:9: note: shadowed declaration is here
468 | int i = write_cache_ovl_idx;
| ^
In file included from src/config_file/config_file.c:3:
src/musashi/m68k.h:187:15: warning: redundant redeclaration of ‘m68k_read_memory_8’ [-Wredundant-decls]
187 | unsigned int m68k_read_memory_8(unsigned int address);
| ^~~~~~~~~~~~~~~~~~
In file included from src/musashi/m68kconf.h:35,
from src/musashi/m68k.h:54:
./src/emulator.h:27:14: note: previous declaration of ‘m68k_read_memory_8’ with type ‘unsigned int(unsigned int)’
27 | unsigned int m68k_read_memory_8(unsigned int address);
| ^~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:188:15: warning: redundant redeclaration of ‘m68k_read_memory_16’ [-Wredundant-decls]
188 | unsigned int m68k_read_memory_16(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
./src/emulator.h:28:14: note: previous declaration of ‘m68k_read_memory_16’ with type ‘unsigned int(unsigned int)’
28 | unsigned int m68k_read_memory_16(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:189:15: warning: redundant redeclaration of ‘m68k_read_memory_32’ [-Wredundant-decls]
189 | unsigned int m68k_read_memory_32(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
./src/emulator.h:29:14: note: previous declaration of ‘m68k_read_memory_32’ with type ‘unsigned int(unsigned int)’
29 | unsigned int m68k_read_memory_32(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:182:34: warning: redundant redeclaration of ‘m68k_read_memory_8’ [-Wredundant-decls]
182 | #define m68k_read_disassembler_8 m68k_read_memory_8
| ^~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:201:14: note: in expansion of macro ‘m68k_read_disassembler_8’
201 | unsigned int m68k_read_disassembler_8 (unsigned int address);
| ^~~~~~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:187:15: note: previous declaration of ‘m68k_read_memory_8’ with type ‘unsigned int(unsigned int)’
187 | unsigned int m68k_read_memory_8(unsigned int address);
| ^~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:183:35: warning: redundant redeclaration of ‘m68k_read_memory_16’ [-Wredundant-decls]
183 | #define m68k_read_disassembler_16 m68k_read_memory_16
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:202:14: note: in expansion of macro ‘m68k_read_disassembler_16’
202 | unsigned int m68k_read_disassembler_16 (unsigned int address);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:188:15: note: previous declaration of ‘m68k_read_memory_16’ with type ‘unsigned int(unsigned int)’
188 | unsigned int m68k_read_memory_16(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:184:35: warning: redundant redeclaration of ‘m68k_read_memory_32’ [-Wredundant-decls]
184 | #define m68k_read_disassembler_32 m68k_read_memory_32
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:203:14: note: in expansion of macro ‘m68k_read_disassembler_32’
203 | unsigned int m68k_read_disassembler_32 (unsigned int address);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:189:15: note: previous declaration of ‘m68k_read_memory_32’ with type ‘unsigned int(unsigned int)’
189 | unsigned int m68k_read_memory_32(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:206:6: warning: redundant redeclaration of ‘m68k_write_memory_8’ [-Wredundant-decls]
206 | void m68k_write_memory_8(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~
./src/emulator.h:30:6: note: previous declaration of ‘m68k_write_memory_8’ with type ‘void(unsigned int, unsigned int)’
30 | void m68k_write_memory_8(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:207:6: warning: redundant redeclaration of ‘m68k_write_memory_16’ [-Wredundant-decls]
207 | void m68k_write_memory_16(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~
./src/emulator.h:31:6: note: previous declaration of ‘m68k_write_memory_16’ with type ‘void(unsigned int, unsigned int)’
31 | void m68k_write_memory_16(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:208:6: warning: redundant redeclaration of ‘m68k_write_memory_32’ [-Wredundant-decls]
208 | void m68k_write_memory_32(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~
./src/emulator.h:32:6: note: previous declaration of ‘m68k_write_memory_32’ with type ‘void(unsigned int, unsigned int)’
32 | void m68k_write_memory_32(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:227:6: warning: redundant redeclaration of ‘m68k_write_memory_32_pd’ [-Wredundant-decls]
227 | void m68k_write_memory_32_pd(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~~~~
./src/emulator.h:33:6: note: previous declaration of ‘m68k_write_memory_32_pd’ with type ‘void(unsigned int, unsigned int)’
33 | void m68k_write_memory_32_pd(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~~~~
src/config_file/config_file.c:234:7: warning: no previous prototype for ‘uppercase’ [-Wmissing-prototypes]
234 | char *uppercase ( char *str )
| ^~~~~~~~~
src/config_file/config_file.c: In function ‘uppercase’:
src/config_file/config_file.c:236:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
236 | for ( int n = 0; n < strlen ( str ); n++ )
| ^
src/config_file/config_file.c:238:15: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion]
238 | str [n] = toupper ( str [n] );
| ^~~~~~~
In file included from src/gpio/ps_protocol_kmod.c:19:
./src/musashi/m68k.h:187:15: warning: redundant redeclaration of ‘m68k_read_memory_8’ [-Wredundant-decls]
187 | unsigned int m68k_read_memory_8(unsigned int address);
| ^~~~~~~~~~~~~~~~~~
In file included from ./src/musashi/m68kconf.h:35,
from ./src/musashi/m68k.h:54:
./src/emulator.h:27:14: note: previous declaration of ‘m68k_read_memory_8’ with type ‘unsigned int(unsigned int)’
27 | unsigned int m68k_read_memory_8(unsigned int address);
| ^~~~~~~~~~~~~~~~~~
./src/musashi/m68k.h:188:15: warning: redundant redeclaration of ‘m68k_read_memory_16’ [-Wredundant-decls]
188 | unsigned int m68k_read_memory_16(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
./src/emulator.h:28:14: note: previous declaration of ‘m68k_read_memory_16’ with type ‘unsigned int(unsigned int)’
28 | unsigned int m68k_read_memory_16(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
./src/musashi/m68k.h:189:15: warning: redundant redeclaration of ‘m68k_read_memory_32’ [-Wredundant-decls]
189 | unsigned int m68k_read_memory_32(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
./src/emulator.h:29:14: note: previous declaration of ‘m68k_read_memory_32’ with type ‘unsigned int(unsigned int)’
29 | unsigned int m68k_read_memory_32(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
./src/musashi/m68k.h:182:34: warning: redundant redeclaration of ‘m68k_read_memory_8’ [-Wredundant-decls]
182 | #define m68k_read_disassembler_8 m68k_read_memory_8
| ^~~~~~~~~~~~~~~~~~
./src/musashi/m68k.h:201:14: note: in expansion of macro ‘m68k_read_disassembler_8’
201 | unsigned int m68k_read_disassembler_8 (unsigned int address);
| ^~~~~~~~~~~~~~~~~~~~~~~~
./src/musashi/m68k.h:187:15: note: previous declaration of ‘m68k_read_memory_8’ with type ‘unsigned int(unsigned int)’
187 | unsigned int m68k_read_memory_8(unsigned int address);
| ^~~~~~~~~~~~~~~~~~
./src/musashi/m68k.h:183:35: warning: redundant redeclaration of ‘m68k_read_memory_16’ [-Wredundant-decls]
183 | #define m68k_read_disassembler_16 m68k_read_memory_16
| ^~~~~~~~~~~~~~~~~~~
./src/musashi/m68k.h:202:14: note: in expansion of macro ‘m68k_read_disassembler_16’
202 | unsigned int m68k_read_disassembler_16 (unsigned int address);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
./src/musashi/m68k.h:188:15: note: previous declaration of ‘m68k_read_memory_16’ with type ‘unsigned int(unsigned int)’
188 | unsigned int m68k_read_memory_16(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
./src/musashi/m68k.h:184:35: warning: redundant redeclaration of ‘m68k_read_memory_32’ [-Wredundant-decls]
184 | #define m68k_read_disassembler_32 m68k_read_memory_32
| ^~~~~~~~~~~~~~~~~~~
./src/musashi/m68k.h:203:14: note: in expansion of macro ‘m68k_read_disassembler_32’
203 | unsigned int m68k_read_disassembler_32 (unsigned int address);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
./src/musashi/m68k.h:189:15: note: previous declaration of ‘m68k_read_memory_32’ with type ‘unsigned int(unsigned int)’
189 | unsigned int m68k_read_memory_32(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
./src/musashi/m68k.h:206:6: warning: redundant redeclaration of ‘m68k_write_memory_8’ [-Wredundant-decls]
206 | void m68k_write_memory_8(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~
./src/emulator.h:30:6: note: previous declaration of ‘m68k_write_memory_8’ with type ‘void(unsigned int, unsigned int)’
30 | void m68k_write_memory_8(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~
./src/musashi/m68k.h:207:6: warning: redundant redeclaration of ‘m68k_write_memory_16’ [-Wredundant-decls]
207 | void m68k_write_memory_16(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~
./src/emulator.h:31:6: note: previous declaration of ‘m68k_write_memory_16’ with type ‘void(unsigned int, unsigned int)’
31 | void m68k_write_memory_16(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~
./src/musashi/m68k.h:208:6: warning: redundant redeclaration of ‘m68k_write_memory_32’ [-Wredundant-decls]
208 | void m68k_write_memory_32(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~
./src/emulator.h:32:6: note: previous declaration of ‘m68k_write_memory_32’ with type ‘void(unsigned int, unsigned int)’
32 | void m68k_write_memory_32(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~
./src/musashi/m68k.h:227:6: warning: redundant redeclaration of ‘m68k_write_memory_32_pd’ [-Wredundant-decls]
227 | void m68k_write_memory_32_pd(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~~~~
./src/emulator.h:33:6: note: previous declaration of ‘m68k_write_memory_32_pd’ with type ‘void(unsigned int, unsigned int)’
33 | void m68k_write_memory_32_pd(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~~~~
src/gpio/ps_protocol_kmod.c:38:5: warning: redundant redeclaration of ‘nanosleep’ [-Wredundant-decls]
38 | int nanosleep(const struct timespec *req, struct timespec *rem);
| ^~~~~~~~~
In file included from src/gpio/ps_protocol_kmod.c:6:
/usr/include/time.h:281:12: note: previous declaration of ‘nanosleep’ with type ‘int(const struct timespec *, struct timespec *)’
281 | extern int nanosleep (const struct timespec *__requested_time,
| ^~~~~~~~~
src/platforms/platforms.c:28:6: warning: redundant redeclaration of ‘create_platform_mac68k’ [-Wredundant-decls]
28 | void create_platform_mac68k(struct platform_config* cfg, const char* subsys);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/platforms/platforms.c:3:
src/platforms/platforms.h:20:6: note: previous declaration of ‘create_platform_mac68k’ with type ‘void(struct platform_config *, const char *)’
20 | void create_platform_mac68k(struct platform_config* cfg, const char* subsys);
| ^~~~~~~~~~~~~~~~~~~~~~
src/platforms/platforms.c:29:6: warning: redundant redeclaration of ‘create_platform_dummy’ [-Wredundant-decls]
29 | void create_platform_dummy(struct platform_config* cfg, const char* subsys);
| ^~~~~~~~~~~~~~~~~~~~~
src/platforms/platforms.h:21:6: note: previous declaration of ‘create_platform_dummy’ with type ‘void(struct platform_config *, const char *)’
21 | void create_platform_dummy(struct platform_config* cfg, const char* subsys);
| ^~~~~~~~~~~~~~~~~~~~~
src/platforms/amiga/zorro/serial_echo/serial_echo.c: In function ‘z2_serial_host_init.constprop’:
src/platforms/amiga/zorro/serial_echo/serial_echo.c:109:47: warning: ‘/amiga/serial’ directive output may be truncated writing 13 bytes into a region of size between 1 and 256 [-Wformat-truncation=]
109 | snprintf(serial_dir, sizeof(serial_dir), "%s/amiga/serial", runtime_dir);
| ^~~~~~~~~~~~~
src/platforms/amiga/zorro/serial_echo/serial_echo.c:109:3: note: ‘snprintf’ output between 14 and 269 bytes into a destination of size 256
109 | snprintf(serial_dir, sizeof(serial_dir), "%s/amiga/serial", runtime_dir);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/platforms/amiga/zorro/serial_echo/serial_echo.c:124:45: warning: ‘/z2serial0’ directive output may be truncated writing 10 bytes into a region of size between 1 and 256 [-Wformat-truncation=]
124 | snprintf(link_path, sizeof(link_path), "%s/z2serial0", serial_dir);
| ^~~~~~~~~~
src/platforms/amiga/zorro/serial_echo/serial_echo.c:124:3: note: ‘snprintf’ output between 11 and 266 bytes into a destination of size 256
124 | snprintf(link_path, sizeof(link_path), "%s/z2serial0", serial_dir);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/host/crypto/pi_crypto_openssl.c: In function ‘pi_aes256_gcm_decrypt’:
src/host/crypto/pi_crypto_openssl.c:102:58: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual]
102 | if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_GCM_SET_TAG, 16, (void *)tag) != 1) {
| ^
In file included from src/platforms/amiga/amiga-autoconf.c:3:
src/musashi/m68k.h:187:15: warning: redundant redeclaration of ‘m68k_read_memory_8’ [-Wredundant-decls]
187 | unsigned int m68k_read_memory_8(unsigned int address);
| ^~~~~~~~~~~~~~~~~~
In file included from src/musashi/m68kconf.h:35,
from src/musashi/m68k.h:54:
./src/emulator.h:27:14: note: previous declaration of ‘m68k_read_memory_8’ with type ‘unsigned int(unsigned int)’
27 | unsigned int m68k_read_memory_8(unsigned int address);
| ^~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:188:15: warning: redundant redeclaration of ‘m68k_read_memory_16’ [-Wredundant-decls]
188 | unsigned int m68k_read_memory_16(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
./src/emulator.h:28:14: note: previous declaration of ‘m68k_read_memory_16’ with type ‘unsigned int(unsigned int)’
28 | unsigned int m68k_read_memory_16(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:189:15: warning: redundant redeclaration of ‘m68k_read_memory_32’ [-Wredundant-decls]
189 | unsigned int m68k_read_memory_32(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
./src/emulator.h:29:14: note: previous declaration of ‘m68k_read_memory_32’ with type ‘unsigned int(unsigned int)’
29 | unsigned int m68k_read_memory_32(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:182:34: warning: redundant redeclaration of ‘m68k_read_memory_8’ [-Wredundant-decls]
182 | #define m68k_read_disassembler_8 m68k_read_memory_8
| ^~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:201:14: note: in expansion of macro ‘m68k_read_disassembler_8’
201 | unsigned int m68k_read_disassembler_8 (unsigned int address);
| ^~~~~~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:187:15: note: previous declaration of ‘m68k_read_memory_8’ with type ‘unsigned int(unsigned int)’
187 | unsigned int m68k_read_memory_8(unsigned int address);
| ^~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:183:35: warning: redundant redeclaration of ‘m68k_read_memory_16’ [-Wredundant-decls]
183 | #define m68k_read_disassembler_16 m68k_read_memory_16
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:202:14: note: in expansion of macro ‘m68k_read_disassembler_16’
202 | unsigned int m68k_read_disassembler_16 (unsigned int address);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:188:15: note: previous declaration of ‘m68k_read_memory_16’ with type ‘unsigned int(unsigned int)’
188 | unsigned int m68k_read_memory_16(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:184:35: warning: redundant redeclaration of ‘m68k_read_memory_32’ [-Wredundant-decls]
184 | #define m68k_read_disassembler_32 m68k_read_memory_32
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:203:14: note: in expansion of macro ‘m68k_read_disassembler_32’
203 | unsigned int m68k_read_disassembler_32 (unsigned int address);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:189:15: note: previous declaration of ‘m68k_read_memory_32’ with type ‘unsigned int(unsigned int)’
189 | unsigned int m68k_read_memory_32(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:206:6: warning: redundant redeclaration of ‘m68k_write_memory_8’ [-Wredundant-decls]
206 | void m68k_write_memory_8(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~
./src/emulator.h:30:6: note: previous declaration of ‘m68k_write_memory_8’ with type ‘void(unsigned int, unsigned int)’
30 | void m68k_write_memory_8(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:207:6: warning: redundant redeclaration of ‘m68k_write_memory_16’ [-Wredundant-decls]
207 | void m68k_write_memory_16(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~
./src/emulator.h:31:6: note: previous declaration of ‘m68k_write_memory_16’ with type ‘void(unsigned int, unsigned int)’
31 | void m68k_write_memory_16(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:208:6: warning: redundant redeclaration of ‘m68k_write_memory_32’ [-Wredundant-decls]
208 | void m68k_write_memory_32(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~
./src/emulator.h:32:6: note: previous declaration of ‘m68k_write_memory_32’ with type ‘void(unsigned int, unsigned int)’
32 | void m68k_write_memory_32(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:227:6: warning: redundant redeclaration of ‘m68k_write_memory_32_pd’ [-Wredundant-decls]
227 | void m68k_write_memory_32_pd(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~~~~
./src/emulator.h:33:6: note: previous declaration of ‘m68k_write_memory_32_pd’ with type ‘void(unsigned int, unsigned int)’
33 | void m68k_write_memory_32_pd(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~~~~
src/platforms/amiga/amiga-autoconf.c:11:20: warning: "MAX_ZORRO_DEVICES" is not defined, evaluates to 0 [-Wundef]
11 | #if AC_PIC_LIMIT < MAX_ZORRO_DEVICES
| ^~~~~~~~~~~~~~~~~
src/platforms/amiga/amiga-autoconf.c:198:17: warning: redundant redeclaration of ‘piscsi_base’ [-Wredundant-decls]
198 | extern uint32_t piscsi_base;
| ^~~~~~~~~~~
src/platforms/amiga/amiga-autoconf.c:193:10: note: previous definition of ‘piscsi_base’ with type ‘uint32_t’ {aka ‘unsigned int’}
193 | uint32_t piscsi_base = 0;
| ^~~~~~~~~~~
src/platforms/amiga/amiga-autoconf.c:199:17: warning: redundant redeclaration of ‘piscsi64_base’ [-Wredundant-decls]
199 | extern uint32_t piscsi64_base;
| ^~~~~~~~~~~~~
src/platforms/amiga/amiga-autoconf.c:194:10: note: previous definition of ‘piscsi64_base’ with type ‘uint32_t’ {aka ‘unsigned int’}
194 | uint32_t piscsi64_base = 0;
| ^~~~~~~~~~~~~
src/platforms/amiga/amiga-autoconf.c:200:17: warning: redundant redeclaration of ‘pistorm_dev_base’ [-Wredundant-decls]
200 | extern uint32_t pistorm_dev_base;
| ^~~~~~~~~~~~~~~~
src/platforms/amiga/amiga-autoconf.c:195:10: note: previous definition of ‘pistorm_dev_base’ with type ‘uint32_t’ {aka ‘unsigned int’}
195 | uint32_t pistorm_dev_base = 0;
| ^~~~~~~~~~~~~~~~
src/platforms/amiga/amiga-autoconf.c:296:13: warning: redundant redeclaration of ‘adjust_ranges_amiga’ [-Wredundant-decls]
296 | extern void adjust_ranges_amiga(struct emulator_config* cfg);
| ^~~~~~~~~~~~~~~~~~~
In file included from src/platforms/amiga/amiga-autoconf.c:7:
src/platforms/amiga/amiga-platform.h:14:6: note: previous declaration of ‘adjust_ranges_amiga’ with type ‘void(struct emulator_config *)’
14 | void adjust_ranges_amiga(struct emulator_config* cfg);
| ^~~~~~~~~~~~~~~~~~~
src/platforms/amiga/amiga-autoconf.c:801:14: warning: no previous prototype for ‘autoconfig_read_memory_16’ [-Wmissing-prototypes]
801 | unsigned int autoconfig_read_memory_16(struct emulator_config* cfg, unsigned int address) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
src/platforms/amiga/amiga-autoconf.c:807:14: warning: no previous prototype for ‘autoconfig_read_memory_32’ [-Wmissing-prototypes]
807 | unsigned int autoconfig_read_memory_32(struct emulator_config* cfg, unsigned int address) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/platforms/amiga/amiga-platform.c:8:
src/musashi/m68k.h:187:15: warning: redundant redeclaration of ‘m68k_read_memory_8’ [-Wredundant-decls]
187 | unsigned int m68k_read_memory_8(unsigned int address);
| ^~~~~~~~~~~~~~~~~~
In file included from src/musashi/m68kconf.h:35,
from src/musashi/m68k.h:54:
./src/emulator.h:27:14: note: previous declaration of ‘m68k_read_memory_8’ with type ‘unsigned int(unsigned int)’
27 | unsigned int m68k_read_memory_8(unsigned int address);
| ^~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:188:15: warning: redundant redeclaration of ‘m68k_read_memory_16’ [-Wredundant-decls]
188 | unsigned int m68k_read_memory_16(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
./src/emulator.h:28:14: note: previous declaration of ‘m68k_read_memory_16’ with type ‘unsigned int(unsigned int)’
28 | unsigned int m68k_read_memory_16(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:189:15: warning: redundant redeclaration of ‘m68k_read_memory_32’ [-Wredundant-decls]
189 | unsigned int m68k_read_memory_32(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
./src/emulator.h:29:14: note: previous declaration of ‘m68k_read_memory_32’ with type ‘unsigned int(unsigned int)’
29 | unsigned int m68k_read_memory_32(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:182:34: warning: redundant redeclaration of ‘m68k_read_memory_8’ [-Wredundant-decls]
182 | #define m68k_read_disassembler_8 m68k_read_memory_8
| ^~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:201:14: note: in expansion of macro ‘m68k_read_disassembler_8’
201 | unsigned int m68k_read_disassembler_8 (unsigned int address);
| ^~~~~~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:187:15: note: previous declaration of ‘m68k_read_memory_8’ with type ‘unsigned int(unsigned int)’
187 | unsigned int m68k_read_memory_8(unsigned int address);
| ^~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:183:35: warning: redundant redeclaration of ‘m68k_read_memory_16’ [-Wredundant-decls]
183 | #define m68k_read_disassembler_16 m68k_read_memory_16
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:202:14: note: in expansion of macro ‘m68k_read_disassembler_16’
202 | unsigned int m68k_read_disassembler_16 (unsigned int address);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:188:15: note: previous declaration of ‘m68k_read_memory_16’ with type ‘unsigned int(unsigned int)’
188 | unsigned int m68k_read_memory_16(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:184:35: warning: redundant redeclaration of ‘m68k_read_memory_32’ [-Wredundant-decls]
184 | #define m68k_read_disassembler_32 m68k_read_memory_32
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:203:14: note: in expansion of macro ‘m68k_read_disassembler_32’
203 | unsigned int m68k_read_disassembler_32 (unsigned int address);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:189:15: note: previous declaration of ‘m68k_read_memory_32’ with type ‘unsigned int(unsigned int)’
189 | unsigned int m68k_read_memory_32(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:206:6: warning: redundant redeclaration of ‘m68k_write_memory_8’ [-Wredundant-decls]
206 | void m68k_write_memory_8(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~
./src/emulator.h:30:6: note: previous declaration of ‘m68k_write_memory_8’ with type ‘void(unsigned int, unsigned int)’
30 | void m68k_write_memory_8(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:207:6: warning: redundant redeclaration of ‘m68k_write_memory_16’ [-Wredundant-decls]
207 | void m68k_write_memory_16(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~
./src/emulator.h:31:6: note: previous declaration of ‘m68k_write_memory_16’ with type ‘void(unsigned int, unsigned int)’
31 | void m68k_write_memory_16(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:208:6: warning: redundant redeclaration of ‘m68k_write_memory_32’ [-Wredundant-decls]
208 | void m68k_write_memory_32(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~
./src/emulator.h:32:6: note: previous declaration of ‘m68k_write_memory_32’ with type ‘void(unsigned int, unsigned int)’
32 | void m68k_write_memory_32(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:227:6: warning: redundant redeclaration of ‘m68k_write_memory_32_pd’ [-Wredundant-decls]
227 | void m68k_write_memory_32_pd(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~~~~
./src/emulator.h:33:6: note: previous declaration of ‘m68k_write_memory_32_pd’ with type ‘void(unsigned int, unsigned int)’
33 | void m68k_write_memory_32_pd(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from src/platforms/amiga/amiga-platform.c:35:
src/memory_mapped.h:48:5: warning: redundant redeclaration of ‘handle_mapped_read’ [-Wredundant-decls]
48 | int handle_mapped_read(struct emulator_config* cfg,
| ^~~~~~~~~~~~~~~~~~
In file included from src/platforms/amiga/amiga-autoconf.h:3,
from src/platforms/amiga/amiga-platform.c:10:
src/config_file/config_file.h:157:5: note: previous declaration of ‘handle_mapped_read’ with type ‘int(struct emulator_config *, unsigned int, unsigned int *, unsigned char)’
157 | int handle_mapped_read(struct emulator_config* cfg,
| ^~~~~~~~~~~~~~~~~~
src/memory_mapped.h:53:5: warning: redundant redeclaration of ‘handle_mapped_write’ [-Wredundant-decls]
53 | int handle_mapped_write(struct emulator_config* cfg,
| ^~~~~~~~~~~~~~~~~~~
src/config_file/config_file.h:162:5: note: previous declaration of ‘handle_mapped_write’ with type ‘int(struct emulator_config *, unsigned int, unsigned int, unsigned char)’
162 | int handle_mapped_write(struct emulator_config* cfg,
| ^~~~~~~~~~~~~~~~~~~
src/platforms/amiga/amiga-platform.c:74:5: warning: redundant redeclaration of ‘handle_register_read_amiga’ [-Wredundant-decls]
74 | int handle_register_read_amiga(unsigned int addr, unsigned char type, unsigned int* val);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/platforms/amiga/amiga-platform.c:11:
src/platforms/amiga/amiga-registers.h:3:5: note: previous declaration of ‘handle_register_read_amiga’ with type ‘int(unsigned int, unsigned char, unsigned int *)’
3 | int handle_register_read_amiga(unsigned int addr, unsigned char type, unsigned int* val);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/platforms/amiga/amiga-platform.c:75:5: warning: redundant redeclaration of ‘handle_register_write_amiga’ [-Wredundant-decls]
75 | int handle_register_write_amiga(unsigned int addr, unsigned int value, unsigned char type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/platforms/amiga/amiga-registers.h:4:5: note: previous declaration of ‘handle_register_write_amiga’ with type ‘int(unsigned int, unsigned int, unsigned char)’
4 | int handle_register_write_amiga(unsigned int addr, unsigned int value, unsigned char type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/platforms/amiga/amiga-platform.c:104:21: warning: redundant redeclaration of ‘a314_base’ [-Wredundant-decls]
104 | extern unsigned int a314_base;
| ^~~~~~~~~
In file included from src/platforms/amiga/amiga-platform.c:31:
src/a314/a314.h:15:21: note: previous declaration of ‘a314_base’ with type ‘unsigned int’
15 | extern unsigned int a314_base;
| ^~~~~~~~~
src/platforms/amiga/amiga-platform.c:134:13: warning: redundant redeclaration of ‘stop_cpu_emulation’ [-Wredundant-decls]
134 | extern void stop_cpu_emulation(uint8_t disasm_cur);
| ^~~~~~~~~~~~~~~~~~
./src/emulator.h:35:6: note: previous declaration of ‘stop_cpu_emulation’ with type ‘void(uint8_t)’ {aka ‘void(unsigned char)’}
35 | void stop_cpu_emulation(uint8_t disasm_cur);
| ^~~~~~~~~~~~~~~~~~
src/platforms/amiga/amiga-interrupts.c: In function ‘amiga_handle_intrq_write’:
src/platforms/amiga/amiga-interrupts.c:47:39: warning: conversion from ‘uint32_t’ {aka ‘unsigned int’} to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
47 | uint16_t hardware_irqs_to_clear = val & ~emulated_irqs;
| ^~~
src/platforms/amiga/amiga-interrupts.c:48:22: warning: conversion from ‘uint32_t’ {aka ‘unsigned int’} to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
48 | emulated_irqs &= ~val;
| ^
In file included from src/platforms/mac68k/mac68k-platform.c:7:
src/musashi/m68k.h:187:15: warning: redundant redeclaration of ‘m68k_read_memory_8’ [-Wredundant-decls]
187 | unsigned int m68k_read_memory_8(unsigned int address);
| ^~~~~~~~~~~~~~~~~~
In file included from src/musashi/m68kconf.h:35,
from src/musashi/m68k.h:54:
./src/emulator.h:27:14: note: previous declaration of ‘m68k_read_memory_8’ with type ‘unsigned int(unsigned int)’
27 | unsigned int m68k_read_memory_8(unsigned int address);
| ^~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:188:15: warning: redundant redeclaration of ‘m68k_read_memory_16’ [-Wredundant-decls]
188 | unsigned int m68k_read_memory_16(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
./src/emulator.h:28:14: note: previous declaration of ‘m68k_read_memory_16’ with type ‘unsigned int(unsigned int)’
28 | unsigned int m68k_read_memory_16(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:189:15: warning: redundant redeclaration of ‘m68k_read_memory_32’ [-Wredundant-decls]
189 | unsigned int m68k_read_memory_32(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
./src/emulator.h:29:14: note: previous declaration of ‘m68k_read_memory_32’ with type ‘unsigned int(unsigned int)’
29 | unsigned int m68k_read_memory_32(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:182:34: warning: redundant redeclaration of ‘m68k_read_memory_8’ [-Wredundant-decls]
182 | #define m68k_read_disassembler_8 m68k_read_memory_8
| ^~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:201:14: note: in expansion of macro ‘m68k_read_disassembler_8’
201 | unsigned int m68k_read_disassembler_8 (unsigned int address);
| ^~~~~~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:187:15: note: previous declaration of ‘m68k_read_memory_8’ with type ‘unsigned int(unsigned int)’
187 | unsigned int m68k_read_memory_8(unsigned int address);
| ^~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:183:35: warning: redundant redeclaration of ‘m68k_read_memory_16’ [-Wredundant-decls]
183 | #define m68k_read_disassembler_16 m68k_read_memory_16
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:202:14: note: in expansion of macro ‘m68k_read_disassembler_16’
202 | unsigned int m68k_read_disassembler_16 (unsigned int address);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:188:15: note: previous declaration of ‘m68k_read_memory_16’ with type ‘unsigned int(unsigned int)’
188 | unsigned int m68k_read_memory_16(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:184:35: warning: redundant redeclaration of ‘m68k_read_memory_32’ [-Wredundant-decls]
184 | #define m68k_read_disassembler_32 m68k_read_memory_32
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:203:14: note: in expansion of macro ‘m68k_read_disassembler_32’
203 | unsigned int m68k_read_disassembler_32 (unsigned int address);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:189:15: note: previous declaration of ‘m68k_read_memory_32’ with type ‘unsigned int(unsigned int)’
189 | unsigned int m68k_read_memory_32(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:206:6: warning: redundant redeclaration of ‘m68k_write_memory_8’ [-Wredundant-decls]
206 | void m68k_write_memory_8(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~
./src/emulator.h:30:6: note: previous declaration of ‘m68k_write_memory_8’ with type ‘void(unsigned int, unsigned int)’
30 | void m68k_write_memory_8(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:207:6: warning: redundant redeclaration of ‘m68k_write_memory_16’ [-Wredundant-decls]
207 | void m68k_write_memory_16(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~
./src/emulator.h:31:6: note: previous declaration of ‘m68k_write_memory_16’ with type ‘void(unsigned int, unsigned int)’
31 | void m68k_write_memory_16(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:208:6: warning: redundant redeclaration of ‘m68k_write_memory_32’ [-Wredundant-decls]
208 | void m68k_write_memory_32(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~
./src/emulator.h:32:6: note: previous declaration of ‘m68k_write_memory_32’ with type ‘void(unsigned int, unsigned int)’
32 | void m68k_write_memory_32(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:227:6: warning: redundant redeclaration of ‘m68k_write_memory_32_pd’ [-Wredundant-decls]
227 | void m68k_write_memory_32_pd(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~~~~
./src/emulator.h:33:6: note: previous declaration of ‘m68k_write_memory_32_pd’ with type ‘void(unsigned int, unsigned int)’
33 | void m68k_write_memory_32_pd(unsigned int address, unsigned int value);
| ^~~~~~~~~~~~~~~~~~~~~~~
src/platforms/mac68k/mac68k-platform.c:23:13: warning: redundant redeclaration of ‘stop_cpu_emulation’ [-Wredundant-decls]
23 | extern void stop_cpu_emulation(uint8_t disasm_cur);
| ^~~~~~~~~~~~~~~~~~
./src/emulator.h:35:6: note: previous declaration of ‘stop_cpu_emulation’ with type ‘void(uint8_t)’ {aka ‘void(unsigned char)’}
35 | void stop_cpu_emulation(uint8_t disasm_cur);
| ^~~~~~~~~~~~~~~~~~
src/platforms/dummy/dummy-platform.c:8:5: warning: redundant redeclaration of ‘handle_register_read_dummy’ [-Wredundant-decls]
8 | int handle_register_read_dummy(unsigned int addr, unsigned char type, unsigned int* val);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/platforms/dummy/dummy-platform.c:6:
src/platforms/platforms.h:23:5: note: previous declaration of ‘handle_register_read_dummy’ with type ‘int(unsigned int, unsigned char, unsigned int *)’
23 | int handle_register_read_dummy(unsigned int addr, unsigned char type, unsigned int* val);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/platforms/dummy/dummy-platform.c:9:5: warning: redundant redeclaration of ‘handle_register_write_dummy’ [-Wredundant-decls]
9 | int handle_register_write_dummy(unsigned int addr, unsigned int value, unsigned char type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/platforms/platforms.h:24:5: note: previous declaration of ‘handle_register_write_dummy’ with type ‘int(unsigned int, unsigned int, unsigned char)’
24 | int handle_register_write_dummy(unsigned int addr, unsigned int value, unsigned char type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/platforms/amiga/pirtg64/pirtg64.c:27:
src/musashi/m68k.h:187:15: warning: redundant redeclaration of ‘m68k_read_memory_8’ [-Wredundant-decls]
187 | unsigned int m68k_read_memory_8(unsigned int address);
| ^~~~~~~~~~~~~~~~~~
In file included from src/musashi/m68kconf.h:35,
from src/musashi/m68k.h:54:
./src/emulator.h:27:14: note: previous declaration of ‘m68k_read_memory_8’ with type ‘unsigned int(unsigned int)’
27 | unsigned int m68k_read_memory_8(unsigned int address);
| ^~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:188:15: warning: redundant redeclaration of ‘m68k_read_memory_16’ [-Wredundant-decls]
188 | unsigned int m68k_read_memory_16(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
./src/emulator.h:28:14: note: previous declaration of ‘m68k_read_memory_16’ with type ‘unsigned int(unsigned int)’
28 | unsigned int m68k_read_memory_16(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:189:15: warning: redundant redeclaration of ‘m68k_read_memory_32’ [-Wredundant-decls]
189 | unsigned int m68k_read_memory_32(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
./src/emulator.h:29:14: note: previous declaration of ‘m68k_read_memory_32’ with type ‘unsigned int(unsigned int)’
29 | unsigned int m68k_read_memory_32(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:182:34: warning: redundant redeclaration of ‘m68k_read_memory_8’ [-Wredundant-decls]
182 | #define m68k_read_disassembler_8 m68k_read_memory_8
| ^~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:201:14: note: in expansion of macro ‘m68k_read_disassembler_8’
201 | unsigned int m68k_read_disassembler_8 (unsigned int address);
| ^~~~~~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:187:15: note: previous declaration of ‘m68k_read_memory_8’ with type ‘unsigned int(unsigned int)’
187 | unsigned int m68k_read_memory_8(unsigned int address);
| ^~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:183:35: warning: redundant redeclaration of ‘m68k_read_memory_16’ [-Wredundant-decls]
183 | #define m68k_read_disassembler_16 m68k_read_memory_16
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:202:14: note: in expansion of macro ‘m68k_read_disassembler_16’
202 | unsigned int m68k_read_disassembler_16 (unsigned int address);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:188:15: note: previous declaration of ‘m68k_read_memory_16’ with type ‘unsigned int(unsigned int)’
188 | unsigned int m68k_read_memory_16(unsigned int address);
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:184:35: warning: redundant redeclaration of ‘m68k_read_memory_32’ [-Wredundant-decls]
184 | #define m68k_read_disassembler_32 m68k_read_memory_32
| ^~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:203:14: note: in expansion of macro ‘m68k_read_disassembler_32’
203 | unsigned int m68k_read_disassembler_32 (unsigned int address);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
src/musashi/m68k.h:189:15: note: previous declaration of ‘m68k_read_memory_32’ with type ‘unsigned int(unsigned int)’