Warnings: Difference between revisions

From vice-emu
Jump to navigation Jump to search
Line 2: Line 2:


== GCC ==
== GCC ==
* compyx (x86, Windows10, 64bit, GCC 7.3.0, GTK3 with msys2/32-bit (r35626)
Configured with --without-resid:
<pre>
Making all in widgets
Making all in base
../../../../../vice/src/arch/gtk3/widgets/mixerwidget.c: In function 'mixer_widget_create':
../../../../../vice/src/arch/gtk3/widgets/mixerwidget.c:392:14: warning: unusedvariable 'sid_present' [-Wunused-variable]
    gboolean sid_present = FALSE;
              ^~~~~~~~~~~
</pre>


* gpz (x86, Linux/Gentoo, 64bit, GCC 7.3.0, GTK3) (r35613)
* gpz (x86, Linux/Gentoo, 64bit, GCC 7.3.0, GTK3) (r35613)

Revision as of 16:56, 17 October 2018

GCC

  • compyx (x86, Windows10, 64bit, GCC 7.3.0, GTK3 with msys2/32-bit (r35626)

Configured with --without-resid:

Making all in widgets
Making all in base
../../../../../vice/src/arch/gtk3/widgets/mixerwidget.c: In function 'mixer_widget_create':
../../../../../vice/src/arch/gtk3/widgets/mixerwidget.c:392:14: warning: unusedvariable 'sid_present' [-Wunused-variable]
     gboolean sid_present = FALSE;
              ^~~~~~~~~~~


  • gpz (x86, Linux/Gentoo, 64bit, GCC 7.3.0, GTK3) (r35613)
Making all in resid
Making all in resid-dtv
Making all in samplerdrv
Making all in joyport
Making all in sounddrv
soundalsa.c: In function 'xrun_recovery':
soundalsa.c:140:37: warning: declaration of 'handle' shadows a global declaration [-Wshadow]
 static int xrun_recovery(snd_pcm_t *handle, int err)
                                     ^~~~~~
soundalsa.c:44:19: note: shadowed declaration is here
 static snd_pcm_t *handle;
                   ^~~~~~
Making all in mididrv
Making all in socketdrv
Making all in hwsiddrv
Making all in iodrv
Making all in drive
Making all in iec
Making all in c64exp
Making all in plus4exp
Making all in iec128dcr
Making all in iecieee
Making all in ieee
Making all in tcbm
Making all in vdrive
Making all in fsdevice
Making all in diskimage
Making all in iecbus
Making all in serial
serial-iec-device.c: In function 'serial_iec_device_exec_main':
serial-iec-device.c:641:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
                 if (clk_value >= iec->timeout) {
                    ^
serial-iec-device.c:649:13: note: here
             case P_READY:
             ^~~~
Making all in parallel
Making all in tape
Making all in imagecontents
Making all in fileio
Making all in video
Making all in raster
Making all in vicii
Making all in viciisc
Making all in viciivsid
Making all in vdc
Making all in crtc
Making all in gfxoutputdrv
Making all in printerdrv
Making all in rs232drv
Making all in sid
Making all in monitor
Making all in core
cs8900.c: In function 'cs8900_receive':
cs8900.c:680:21: warning: 'multicast' may be used uninitialized in this function [-Wmaybe-uninitialized]
             ret_val |= multicast ? 0x0200 : 0;
                     ^~
viacore.c: In function 'viacore_read':
viacore.c:721:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
             if (via_context->ier & (VIA_IM_CA1 | VIA_IM_CA2)) {
                ^
viacore.c:725:9: note: here
         case VIA_PRA_NHS: /* port A, no handshake */
         ^~~~
Making all in rtc
ds12c887.c: In function 'ds12c887_store_data':
ds12c887.c:658:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
             if (context->set) {
                ^
ds12c887.c:664:9: note: here
         case DS12C887_REG_CTRL_A:
         ^~~~
Making all in userport
Making all in tapeport
Making all in diag
Making all in c64
Making all in cart
c64model.c: In function 'c64model_get_temp':
c64model.c:177:27: warning: declaration of 'cia1_model' shadows a global declaration [-Wshadow]
                       int cia1_model, int cia2_model, int board, int iecreset,
                           ^~~~~~~~~~
In file included from c64model.c:33:0:
c64-resources.h:50:12: note: shadowed declaration is here
 extern int cia1_model;
            ^~~~~~~~~~
c64model.c:177:43: warning: declaration of 'cia2_model' shadows a global declaration [-Wshadow]
                       int cia1_model, int cia2_model, int board, int iecreset,
                                           ^~~~~~~~~~
In file included from c64model.c:33:0:
c64-resources.h:51:12: note: shadowed declaration is here
 extern int cia2_model;
            ^~~~~~~~~~
c64model.c: In function 'c64model_get':
c64model.c:217:27: warning: declaration of 'cia1_model' shadows a global declaration [-Wshadow]
     int video, sid_model, cia1_model, cia2_model, board, iecreset, kernalrev;
                           ^~~~~~~~~~
In file included from c64model.c:33:0:
c64-resources.h:50:12: note: shadowed declaration is here
 extern int cia1_model;
            ^~~~~~~~~~
c64model.c:217:39: warning: declaration of 'cia2_model' shadows a global declaration [-Wshadow]
     int video, sid_model, cia1_model, cia2_model, board, iecreset, kernalrev;
                                       ^~~~~~~~~~
In file included from c64model.c:33:0:
c64-resources.h:51:12: note: shadowed declaration is here
 extern int cia2_model;
            ^~~~~~~~~~
c64model.c: In function 'c64model_set_temp':
c64model.c:239:46: warning: declaration of 'cia1_model' shadows a global declaration [-Wshadow]
                        int *glue_logic, int *cia1_model, int *cia2_model,
                                              ^~~~~~~~~~
In file included from c64model.c:33:0:
c64-resources.h:50:12: note: shadowed declaration is here
 extern int cia1_model;
            ^~~~~~~~~~
c64model.c:239:63: warning: declaration of 'cia2_model' shadows a global declaration [-Wshadow]
                        int *glue_logic, int *cia1_model, int *cia2_model,
                                                               ^~~~~~~~~~
In file included from c64model.c:33:0:
c64-resources.h:51:12: note: shadowed declaration is here
 extern int cia2_model;
            ^~~~~~~~~~
c64cia1.c: In function 'cia1_setup_context':
c64cia1.c:479:44: warning: declaration of 'machine_context' shadows a global declaration [-Wshadow]
 void cia1_setup_context(machine_context_t *machine_context)
                                            ^~~~~~~~~~~~~~~
In file included from c64cia1.c:36:0:
c64.h:98:26: note: shadowed declaration is here
 extern machine_context_t machine_context;
                          ^~~~~~~~~~~~~~~
c64cia2.c: In function 'cia2_setup_context':
c64cia2.c:318:44: warning: declaration of 'machine_context' shadows a global declaration [-Wshadow]
 void cia2_setup_context(machine_context_t *machine_context)
                                            ^~~~~~~~~~~~~~~
In file included from c64cia2.c:37:0:
c64.h:98:26: note: shadowed declaration is here
 extern machine_context_t machine_context;
                          ^~~~~~~~~~~~~~~
c64printer.c: In function 'machine_printer_setup_context':
c64printer.c:35:62: warning: declaration of 'machine_context' shadows a global declaration [-Wshadow]
 void machine_printer_setup_context(struct machine_context_s *machine_context)
                                                              ^~~~~~~~~~~~~~~
In file included from c64printer.c:29:0:
c64.h:98:26: note: shadowed declaration is here
 extern machine_context_t machine_context;
                          ^~~~~~~~~~~~~~~
c64scmodel.c: In function 'c64model_get_temp':
c64scmodel.c:195:27: warning: declaration of 'cia1_model' shadows a global declaration [-Wshadow]
                       int cia1_model, int cia2_model, int board,
                           ^~~~~~~~~~
In file included from c64scmodel.c:33:0:
c64-resources.h:50:12: note: shadowed declaration is here
 extern int cia1_model;
            ^~~~~~~~~~
c64scmodel.c:195:43: warning: declaration of 'cia2_model' shadows a global declaration [-Wshadow]
                       int cia1_model, int cia2_model, int board,
                                           ^~~~~~~~~~
In file included from c64scmodel.c:33:0:
c64-resources.h:51:12: note: shadowed declaration is here
 extern int cia2_model;
            ^~~~~~~~~~
c64scmodel.c: In function 'c64model_get':
c64scmodel.c:236:45: warning: declaration of 'cia1_model' shadows a global declaration [-Wshadow]
     int vicii_model, sid_model, glue_logic, cia1_model, cia2_model, board, iecreset, kernalrev;
                                             ^~~~~~~~~~
In file included from c64scmodel.c:33:0:
c64-resources.h:50:12: note: shadowed declaration is here
 extern int cia1_model;
            ^~~~~~~~~~
c64scmodel.c:236:57: warning: declaration of 'cia2_model' shadows a global declaration [-Wshadow]
     int vicii_model, sid_model, glue_logic, cia1_model, cia2_model, board, iecreset, kernalrev;
                                                         ^~~~~~~~~~
In file included from c64scmodel.c:33:0:
c64-resources.h:51:12: note: shadowed declaration is here
 extern int cia2_model;
            ^~~~~~~~~~
c64scmodel.c: In function 'c64model_set_temp':
c64scmodel.c:259:46: warning: declaration of 'cia1_model' shadows a global declaration [-Wshadow]
                        int *glue_logic, int *cia1_model, int *cia2_model,
                                              ^~~~~~~~~~
In file included from c64scmodel.c:33:0:
c64-resources.h:50:12: note: shadowed declaration is here
 extern int cia1_model;
            ^~~~~~~~~~
c64scmodel.c:259:63: warning: declaration of 'cia2_model' shadows a global declaration [-Wshadow]
                        int *glue_logic, int *cia1_model, int *cia2_model,
                                                               ^~~~~~~~~~
In file included from c64scmodel.c:33:0:
c64-resources.h:51:12: note: shadowed declaration is here
 extern int cia2_model;
            ^~~~~~~~~~
Making all in scpu64
scpu64model.c: In function 'scpu64model_get_temp':
scpu64model.c:160:37: warning: declaration of 'cia1_model' shadows a global declaration [-Wshadow]
                                 int cia1_model, int cia2_model,
                                     ^~~~~~~~~~
In file included from scpu64model.c:33:0:
../../src/c64/c64-resources.h:50:12: note: shadowed declaration is here
 extern int cia1_model;
            ^~~~~~~~~~
scpu64model.c:160:53: warning: declaration of 'cia2_model' shadows a global declaration [-Wshadow]
                                 int cia1_model, int cia2_model,
                                                     ^~~~~~~~~~
In file included from scpu64model.c:33:0:
../../src/c64/c64-resources.h:51:12: note: shadowed declaration is here
 extern int cia2_model;
            ^~~~~~~~~~
scpu64model.c: In function 'c64model_get':
scpu64model.c:198:45: warning: declaration of 'cia1_model' shadows a global declaration [-Wshadow]
     int vicii_model, sid_model, glue_logic, cia1_model, cia2_model, iecreset;
                                             ^~~~~~~~~~
In file included from scpu64model.c:33:0:
../../src/c64/c64-resources.h:50:12: note: shadowed declaration is here
 extern int cia1_model;
            ^~~~~~~~~~
scpu64model.c:198:57: warning: declaration of 'cia2_model' shadows a global declaration [-Wshadow]
     int vicii_model, sid_model, glue_logic, cia1_model, cia2_model, iecreset;
                                                         ^~~~~~~~~~
In file included from scpu64model.c:33:0:
../../src/c64/c64-resources.h:51:12: note: shadowed declaration is here
 extern int cia2_model;
            ^~~~~~~~~~
scpu64model.c: In function 'scpu64model_set_temp':
scpu64model.c:218:56: warning: declaration of 'cia1_model' shadows a global declaration [-Wshadow]
                                  int *glue_logic, int *cia1_model, int *cia2_model,
                                                        ^~~~~~~~~~
In file included from scpu64model.c:33:0:
../../src/c64/c64-resources.h:50:12: note: shadowed declaration is here
 extern int cia1_model;
            ^~~~~~~~~~
scpu64model.c:218:73: warning: declaration of 'cia2_model' shadows a global declaration [-Wshadow]
                                  int *glue_logic, int *cia1_model, int *cia2_model,
                                                                         ^~~~~~~~~~
In file included from scpu64model.c:33:0:
../../src/c64/c64-resources.h:51:12: note: shadowed declaration is here
 extern int cia2_model;
            ^~~~~~~~~~
Making all in c64dtv
c64dtvcpu.c:537:2: warning: #warning "CPUMEMHISTORY implementation for x64dtv is incomplete" [-Wcpp]
 #warning "CPUMEMHISTORY implementation for x64dtv is incomplete"
  ^~~~~~~
c64dtvprinter.c: In function 'machine_printer_setup_context':
c64dtvprinter.c:35:62: warning: declaration of 'machine_context' shadows a global declaration [-Wshadow]
 void machine_printer_setup_context(struct machine_context_s *machine_context)
                                                              ^~~~~~~~~~~~~~~
In file included from c64dtvprinter.c:29:0:
../../src/c64/c64.h:98:26: note: shadowed declaration is here
 extern machine_context_t machine_context;
                          ^~~~~~~~~~~~~~~
Making all in c128
c128cpu.c:123:2: warning: #warning "CPUMEMHISTORY implementation for x128 is incomplete" [-Wcpp]
 #warning "CPUMEMHISTORY implementation for x128 is incomplete"
  ^~~~~~~
c128model.c: In function 'c128model_get_temp':
c128model.c:93:28: warning: declaration of 'cia1_model' shadows a global declaration [-Wshadow]
                        int cia1_model, int cia2_model)
                            ^~~~~~~~~~
In file included from c128model.c:30:0:
c128-resources.h:41:12: note: shadowed declaration is here
 extern int cia1_model;
            ^~~~~~~~~~
c128model.c:93:44: warning: declaration of 'cia2_model' shadows a global declaration [-Wshadow]
                        int cia1_model, int cia2_model)
                                            ^~~~~~~~~~
In file included from c128model.c:30:0:
c128-resources.h:42:12: note: shadowed declaration is here
 extern int cia2_model;
            ^~~~~~~~~~
c128model.c: In function 'c128model_get':
c128model.c:121:27: warning: declaration of 'cia1_model' shadows a global declaration [-Wshadow]
     int video, sid_model, cia1_model, cia2_model, vdc_revision, vdc_64k;
                           ^~~~~~~~~~
In file included from c128model.c:30:0:
c128-resources.h:41:12: note: shadowed declaration is here
 extern int cia1_model;
            ^~~~~~~~~~
c128model.c:121:39: warning: declaration of 'cia2_model' shadows a global declaration [-Wshadow]
     int video, sid_model, cia1_model, cia2_model, vdc_revision, vdc_64k;
                                       ^~~~~~~~~~
In file included from c128model.c:30:0:
c128-resources.h:42:12: note: shadowed declaration is here
 extern int cia2_model;
            ^~~~~~~~~~
functionrom.c: In function 'set_external_function_rom_enabled':
functionrom.c:154:26: warning: this statement may fall through [-Wimplicit-fallthrough=]
             rtc2_context = bq4830y_init("EFR");
             ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
functionrom.c:155:9: note: here
         case EXT_FUNCTION_RAM:
         ^~~~
functionrom.c: In function 'set_internal_function_rom_enabled':
functionrom.c:103:26: warning: this statement may fall through [-Wimplicit-fallthrough=]
             rtc1_context = bq4830y_init("IFR");
             ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
functionrom.c:104:9: note: here
         case INT_FUNCTION_RAM:
         ^~~~
Making all in vic20
Making all in cart
vic20ieeevia1.c: In function 'vic20ieeevia1_setup_context':
vic20ieeevia1.c:167:53: warning: declaration of 'machine_context' shadows a global declaration [-Wshadow]
 void vic20ieeevia1_setup_context(machine_context_t *machine_context)
                                                     ^~~~~~~~~~~~~~~
In file included from vic20ieeevia1.c:39:0:
vic20.h:70:26: note: shadowed declaration is here
 extern machine_context_t machine_context;
                          ^~~~~~~~~~~~~~~
vic20ieeevia2.c: In function 'vic20ieeevia2_setup_context':
vic20ieeevia2.c:168:53: warning: declaration of 'machine_context' shadows a global declaration [-Wshadow]
 void vic20ieeevia2_setup_context(machine_context_t *machine_context)
                                                     ^~~~~~~~~~~~~~~
In file included from vic20ieeevia2.c:39:0:
vic20.h:70:26: note: shadowed declaration is here
 extern machine_context_t machine_context;
                          ^~~~~~~~~~~~~~~
vic20printer.c: In function 'machine_printer_setup_context':
vic20printer.c:35:62: warning: declaration of 'machine_context' shadows a global declaration [-Wshadow]
 void machine_printer_setup_context(struct machine_context_s *machine_context)
                                                              ^~~~~~~~~~~~~~~
In file included from vic20printer.c:32:0:
vic20.h:70:26: note: shadowed declaration is here
 extern machine_context_t machine_context;
                          ^~~~~~~~~~~~~~~
vic20via1.c: In function 'vic20via1_setup_context':
vic20via1.c:197:49: warning: declaration of 'machine_context' shadows a global declaration [-Wshadow]
 void vic20via1_setup_context(machine_context_t *machine_context)
                                                 ^~~~~~~~~~~~~~~
In file included from vic20via1.c:42:0:
vic20.h:70:26: note: shadowed declaration is here
 extern machine_context_t machine_context;
                          ^~~~~~~~~~~~~~~
vic20via2.c: In function 'vic20via2_setup_context':
vic20via2.c:276:49: warning: declaration of 'machine_context' shadows a global declaration [-Wshadow]
 void vic20via2_setup_context(machine_context_t *machine_context)
                                                 ^~~~~~~~~~~~~~~
In file included from vic20via2.c:45:0:
vic20.h:70:26: note: shadowed declaration is here
 extern machine_context_t machine_context;
                          ^~~~~~~~~~~~~~~
Making all in pet
6809.c: In function 'cwai':
6809.c:1806:49: warning: declaration of 'maincpu_int_status' shadows a global declaration [-Wshadow]
 static void cwai(struct interrupt_cpu_status_s *maincpu_int_status, alarm_context_t *maincpu_alarm_context)
                                                 ^~~~~~~~~~~~~~~~~~
In file included from 6809.h:37:0,
                 from 6809.c:27:
../../src/interrupt.h:319:32: note: shadowed declaration is here
 extern interrupt_cpu_status_t *maincpu_int_status;
                                ^~~~~~~~~~~~~~~~~~
6809.c: In function 'h6809_mainloop':
6809.c:2745:53: warning: declaration of 'maincpu_int_status' shadows a global declaration [-Wshadow]
 void h6809_mainloop (struct interrupt_cpu_status_s *maincpu_int_status, alarm_context_t *maincpu_alarm_context)
                                                     ^~~~~~~~~~~~~~~~~~
In file included from 6809.h:37:0,
                 from 6809.c:27:
../../src/interrupt.h:319:32: note: shadowed declaration is here
 extern interrupt_cpu_status_t *maincpu_int_status;
                                ^~~~~~~~~~~~~~~~~~
petcpu.c:69:2: warning: #warning "CPUMEMHISTORY implementation for xpet is incomplete" [-Wcpp]
 #warning "CPUMEMHISTORY implementation for xpet is incomplete"
  ^~~~~~~
petmem.c: In function 'read_io_e8':
petmem.c:770:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
             if (petres.crtc) {
                ^
petmem.c:773:9: note: here
         case 0x00:
         ^~~~
petmemsnapshot.c: In function 'mem_read_ram_snapshot_module':
petmemsnapshot.c:211:9: warning: declaration of 'spet_bank' shadows a global declaration [-Wshadow]
     int spet_bank = 0;
         ^~~~~~~~~
In file included from petmemsnapshot.c:43:0:
petmem.h:79:12: note: shadowed declaration is here
 extern int spet_bank;
            ^~~~~~~~~
petprinter.c: In function 'machine_printer_setup_context':
petprinter.c:35:62: warning: declaration of 'machine_context' shadows a global declaration [-Wshadow]
 void machine_printer_setup_context(struct machine_context_s *machine_context)
                                                              ^~~~~~~~~~~~~~~
In file included from petprinter.c:30:0:
pet.h:92:26: note: shadowed declaration is here
 extern machine_context_t machine_context;
                          ^~~~~~~~~~~~~~~
petrom.c: In function 'mem_load':
petrom.c:850:13: warning: declaration of 'i' shadows a previous local [-Wshadow]
         int i;
             ^
petrom.c:797:9: note: shadowed declaration is here
     int i;
         ^
petvia.c: In function 'petvia_setup_context':
petvia.c:238:46: warning: declaration of 'machine_context' shadows a global declaration [-Wshadow]
 void petvia_setup_context(machine_context_t *machine_context)
                                              ^~~~~~~~~~~~~~~
In file included from petvia.c:43:0:
pet.h:92:26: note: shadowed declaration is here
 extern machine_context_t machine_context;
                          ^~~~~~~~~~~~~~~
Making all in plus4
plus4cpu.c:40:2: warning: #warning "CPUMEMHISTORY implementation for xplus4 is incomplete" [-Wcpp]
 #warning "CPUMEMHISTORY implementation for xplus4 is incomplete"
  ^~~~~~~
plus4printer.c: In function 'machine_printer_setup_context':
plus4printer.c:34:62: warning: declaration of 'machine_context' shadows a global declaration [-Wshadow]
 void machine_printer_setup_context(struct machine_context_s *machine_context)
                                                              ^~~~~~~~~~~~~~~
In file included from plus4printer.c:30:0:
plus4.h:51:26: note: shadowed declaration is here
 extern machine_context_t machine_context;
                          ^~~~~~~~~~~~~~~
plus4speech.c: In function 'read_bit_from_fifo':
plus4speech.c:228:48: warning: declaration of 't6721' shadows a global declaration [-Wshadow]
 static uint8_t read_bit_from_fifo(t6721_state *t6721, unsigned int *bit)
                                                ^~~~~
plus4speech.c:123:21: note: shadowed declaration is here
 static t6721_state *t6721; /* context for the t6721 chip */
                     ^~~~~
plus4speech.c: In function 'set_dtrd':
plus4speech.c:312:35: warning: declaration of 't6721' shadows a global declaration [-Wshadow]
 static void set_dtrd(t6721_state *t6721)
                                   ^~~~~
plus4speech.c:123:21: note: shadowed declaration is here
 static t6721_state *t6721; /* context for the t6721 chip */
                     ^~~~~
plus4speech.c: In function 'set_apd':
plus4speech.c:324:34: warning: declaration of 't6721' shadows a global declaration [-Wshadow]
 static void set_apd(t6721_state *t6721)
                                  ^~~~~
plus4speech.c:123:21: note: shadowed declaration is here
 static t6721_state *t6721; /* context for the t6721 chip */
                     ^~~~~
plus4speech.c: In function 'set_eos':
plus4speech.c:339:34: warning: declaration of 't6721' shadows a global declaration [-Wshadow]
 static void set_eos(t6721_state *t6721)
                                  ^~~~~
plus4speech.c:123:21: note: shadowed declaration is here
 static t6721_state *t6721; /* context for the t6721 chip */
                     ^~~~~
plus4speech.c:341:16: warning: declaration of 'last' shadows a global declaration [-Wshadow]
     static int last;
                ^~~~
plus4speech.c:141:12: note: shadowed declaration is here
 static int last = 0;
            ^~~~
plus4speech.c: In function 'speech_setup_context':
plus4speech.c:469:46: warning: declaration of 'machine_context' shadows a global declaration [-Wshadow]
 void speech_setup_context(machine_context_t *machine_context)
                                              ^~~~~~~~~~~~~~~
In file included from plus4speech.c:39:0:
plus4.h:51:26: note: shadowed declaration is here
 extern machine_context_t machine_context;
                          ^~~~~~~~~~~~~~~
Making all in cbm2
cbm2cia1.c: In function 'cia1_setup_context':
cbm2cia1.c:224:44: warning: declaration of 'machine_context' shadows a global declaration [-Wshadow]
 void cia1_setup_context(machine_context_t *machine_context)
                                            ^~~~~~~~~~~~~~~
In file included from cbm2cia1.c:40:0:
cbm2.h:98:26: note: shadowed declaration is here
 extern machine_context_t machine_context;
                          ^~~~~~~~~~~~~~~
cbm2cpu.c:68:2: warning: #warning "CPUMEMHISTORY implementation for xcbm2 is incomplete" [-Wcpp]
 #warning "CPUMEMHISTORY implementation for xcbm2 is incomplete"
  ^~~~~~~
cbm2model.c: In function 'cbm2model_get_temp':
cbm2model.c:75:46: warning: declaration of 'ramsize' shadows a global declaration [-Wshadow]
 static int cbm2model_get_temp(int video, int ramsize, int hasvicii, int line)
                                              ^~~~~~~
In file included from cbm2model.c:42:0:
cbm2-resources.h:41:12: note: shadowed declaration is here
 extern int ramsize;
            ^~~~~~~
cbm2model.c: In function 'cbm2model_get':
cbm2model.c:93:16: warning: declaration of 'ramsize' shadows a global declaration [-Wshadow]
     int video, ramsize, hasvicii, line;
                ^~~~~~~
In file included from cbm2model.c:42:0:
cbm2-resources.h:41:12: note: shadowed declaration is here
 extern int ramsize;
            ^~~~~~~
cbm2printer.c: In function 'machine_printer_setup_context':
cbm2printer.c:35:62: warning: declaration of 'machine_context' shadows a global declaration [-Wshadow]
 void machine_printer_setup_context(struct machine_context_s *machine_context)
                                                              ^~~~~~~~~~~~~~~
In file included from cbm2printer.c:29:0:
cbm2.h:98:26: note: shadowed declaration is here
 extern machine_context_t machine_context;
                          ^~~~~~~~~~~~~~~
cbm2tpi1.c: In function 'tpi1_setup_context':
cbm2tpi1.c:237:44: warning: declaration of 'machine_context' shadows a global declaration [-Wshadow]
 void tpi1_setup_context(machine_context_t *machine_context)
                                            ^~~~~~~~~~~~~~~
In file included from cbm2tpi1.c:32:0:
cbm2.h:98:26: note: shadowed declaration is here
 extern machine_context_t machine_context;
                          ^~~~~~~~~~~~~~~
cbm2tpi2.c: In function 'tpi2_setup_context':
cbm2tpi2.c:153:44: warning: declaration of 'machine_context' shadows a global declaration [-Wshadow]
 void tpi2_setup_context(machine_context_t *machine_context)
                                            ^~~~~~~~~~~~~~~
In file included from cbm2tpi2.c:32:0:
cbm2.h:98:26: note: shadowed declaration is here
 extern machine_context_t machine_context;
                          ^~~~~~~~~~~~~~~
cbm5x0cia1.c: In function 'cia1_setup_context':
cbm5x0cia1.c:220:44: warning: declaration of 'machine_context' shadows a global declaration [-Wshadow]
 void cia1_setup_context(machine_context_t *machine_context)
                                            ^~~~~~~~~~~~~~~
In file included from cbm5x0cia1.c:39:0:
cbm2.h:98:26: note: shadowed declaration is here
 extern machine_context_t machine_context;
                          ^~~~~~~~~~~~~~~
cbm5x0printer.c: In function 'machine_printer_setup_context':
cbm5x0printer.c:35:62: warning: declaration of 'machine_context' shadows a global declaration [-Wshadow]
 void machine_printer_setup_context(struct machine_context_s *machine_context)
                                                              ^~~~~~~~~~~~~~~
In file included from cbm5x0printer.c:29:0:
cbm2.h:98:26: note: shadowed declaration is here
 extern machine_context_t machine_context;
                          ^~~~~~~~~~~~~~~
Making all in arch/shared
Making all in arch
Making all in gtk3
Making all in data
Making all in novte
Making all in widgets
Making all in base
uicart.c: In function 'attach_cart_image':
uicart.c:468:24: warning: this statement may fall through [-Wimplicit-fallthrough=]
                     id = CARTRIDGE_VIC20_DETECT;
uicart.c:469:17: note: here
                 case UICART_VIC20_GENERIC:
                 ^~~~
uicart.c:497:24: warning: this statement may fall through [-Wimplicit-fallthrough=]
                     id = CARTRIDGE_PLUS4_DETECT;
uicart.c:498:17: note: here
                 case UICART_PLUS4_NEWROM:
                 ^~~~
uivideo.c: In function 'uivideo_chip_name':
uivideo.c:78:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
Making all in shared
Making all in lib
Making all in p64
Making all in hvsc
datasette.c: In function 'datasette_control_internal':
datasette.c:859:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
                 datasette_internal_reset();
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
datasette.c:860:13: note: here
             case DATASETTE_CONTROL_STOP:
             ^~~~
datasette.c:916:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
                 datasette_internal_reset();
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
datasette.c:917:13: note: here
             case DATASETTE_CONTROL_STOP:
             ^~~~
svnversion: warning: cannot set LC_CTYPE locale
svnversion: warning: environment variable LANG is en
svnversion: warning: please check that your locale name is correct
vsync.c: In function 'vsync_set_machine_parameter':
vsync.c:270:41: warning: declaration of 'refresh_rate' shadows a global declaration [-Wshadow]
 void vsync_set_machine_parameter(double refresh_rate, long cycles)
                                         ^~~~~~~~~~~~
vsync.c:78:12: note: shadowed declaration is here
 static int refresh_rate;
            ^~~~~~~~~~~~
Making all in build
Making all in android
Making all in beos
Making all in macosx
Making all in nextstep
Making all in openstep
Making all in openwatcom
Making all in qnx4
Making all in rhapsody
Making all in data
Making all in C64
Making all in C64DTV
Making all in C128
Making all in VIC20
Making all in PET
Making all in PLUS4
Making all in CBM-II
Making all in SCPU64
Making all in DRIVES
Making all in PRINTER
Making all in fonts
Making all in man
Making all in doc
Making all in building
Making all in html


  • gpz (x86, Linux/Gentoo, 64bit, GCC 6.4.0, GTK3) (3.2 tarball)
./configure --program-prefix=gtk3- --enable-debug --enable-native-gtk3ui --enable-debug-gtk3ui --enable-native-tools --enable-arch=native --prefix=/usr/games/ --enable-parsid --with-midas --with-resid --with-xaw3d --with-arts --with-x --enable-ethernet --with-pulse --with-sdlsound --enable-fullscreen --enable-cpuhistory --enable-static-ffmpeg --enable-static-lame

no warnings besides a bunch of ffmpeg related things that are not listed here (we dont fix them)


  • compyx (x64, Windows 10/msys2, GCC 7.3.0, SDL2) (r35061)
Quite a few warnings after updating msys64, resulting in upgrading GCC from 7.3.0 to 8.2.0, though we can probably ignore the warnings about VTE.
In file included from ../../../../vice/src/arch/sdl/archdep.c:54:0:
../../../../vice/src/arch/sdl/archdep_win32.c: In function 'kbd_arch_get_host_mapping':
../../../../vice/src/arch/sdl/archdep_win32.c:781:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     int lang = (int)GetKeyboardLayout(0);
                ^
At top level:
../../../../vice/src/arch/sdl/archdep_win32.c:224:13: warning: 'system_wcstombs_free' defined but not used [-Wunused-function]
 static void system_wcstombs_free(char *mbs)
             ^22:48, 18 June 2018 (CEST)22:48, 18 June 2018 (CEST)22:48, 18 June 2018 (CEST)[[User:Compyx|Compyx]] ([[User talk:Compyx|talk]]) 22:48, 18 June 2018 (CEST)
../../../../vice/src/arch/sdl/archdep_win32.c:210:14: warning: 'system_wcstombs_alloc' defined but not used [-Wunused-function]
 static char *system_wcstombs_alloc(const char *wcs)
              ^22:48, 18 June 2018 (CEST)22:48, 18 June 2018 (CEST)22:48, 18 June 2018 (CEST)22:48, 18 June 2018 (CEST)
../../../../vice/src/arch/sdl/menu_c64cart.c: In function 'makegroup':
../../../../vice/src/arch/sdl/menu_c64cart.c:87:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
             ui_c64cart_entry.data = (ui_callback_data_t)(unsigned long)cartlist->crtid;
                                     ^
In file included from ../../../../vice/src/arch/sdl/menu_midi.c:35:0:
../../../../vice/src/arch/sdl/menu_midi.c:161:18: warning: no previous prototype for 'MIDIInDev_dynmenu_callback' [-Wmissing-prototypes]
 UI_MENU_CALLBACK(MIDIInDev_dynmenu_callback)
                  ^
../../../../vice/src/arch/sdl/menu_common.h:62:17: note: in definition of macro 'UI_MENU_CALLBACK'
     const char *name(int activated, ui_callback_data_t param)
                 ^[[User:Compyx|Compyx]] ([[User talk:Compyx|talk]])
../../../../vice/src/arch/sdl/menu_midi.c: In function 'MIDIInDev_dynmenu_callback':
../../../../vice/src/arch/sdl/menu_midi.c:189:44: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
                 midi_in_dyn_menu[i].data = (ui_callback_data_t)j;
                                            ^
In file included from ../../../../vice/src/arch/sdl/menu_midi.c:35:0:
../../../../vice/src/arch/sdl/menu_midi.c: At top level:
../../../../vice/src/arch/sdl/menu_midi.c:203:18: warning: no previous prototype for 'MIDIOutDev_dynmenu_callback' [-Wmissing-prototypes]
 UI_MENU_CALLBACK(MIDIOutDev_dynmenu_callback)
                  ^
../../../../vice/src/arch/sdl/menu_common.h:62:17: note: in definition of macro 'UI_MENU_CALLBACK'
     const char *name(int activated, ui_callback_data_t param)
                 ^[[User:Compyx|Compyx]] ([[User talk:Compyx|talk]])
../../../../vice/src/arch/sdl/menu_midi.c: In function 'MIDIOutDev_dynmenu_callback':
../../../../vice/src/arch/sdl/menu_midi.c:231:45: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
                 midi_out_dyn_menu[i].data = (ui_callback_data_t)j;
                                             ^
../../../../vice/src/arch/sdl/menu_settings.c: In function 'uikeyboard_menu_create':
../../../../vice/src/arch/sdl/menu_settings.c:179:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
         ui_keyboard_mapping_entry.data = (ui_callback_data_t)(unsigned long)kbdlist->mapping;
                                         ^


  • compyx (x64, Windows 10/msys2, GCC 8.2.0, Gtk3) (r35433)
Making all in hwsiddrv
../../../vice/src/hwsiddrv/ps-win32-dll.c: In function 'parsid_GetAddressLptPortInTheRegistry':
../../../vice/src/hwsiddrv/ps-win32-dll.c:243:26: warning: '%d' directive writing 1 byte into a region of size between 0 and 254 [-Wformat-overflow=]
     sprintf(myData, "%s\\%d", myKey, myPort - 1);
                          ^~
../../../vice/src/hwsiddrv/ps-win32-dll.c:243:21: note: directive argument in the range [0, 2]
     sprintf(myData, "%s\\%d", myKey, myPort - 1);
                     ^~~~~~~~
../../../vice/src/hwsiddrv/ps-win32-dll.c:243:5: note: 'sprintf' output between 3 and 257 bytes into a destination of size 255
     sprintf(myData, "%s\\%d", myKey, myPort - 1);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../vice/src/hwsiddrv/ps-win32-io.c: In function 'parsid_GetAddressLptPortInTheRegistry':
../../../vice/src/hwsiddrv/ps-win32-io.c:207:26: warning: '%d' directive writing 1 byte into a region of size between 0 and 254 [-Wformat-overflow=]
     sprintf(myData, "%s\\%d", myKey, myPort - 1);
                          ^~
../../../vice/src/hwsiddrv/ps-win32-io.c:207:21: note: directive argument in the range [0, 2]
     sprintf(myData, "%s\\%d", myKey, myPort - 1);
                     ^~~~~~~~
../../../vice/src/hwsiddrv/ps-win32-io.c:207:5: note: 'sprintf' output between 3 and 257 bytes into a destination of size 255
     sprintf(myData, "%s\\%d", myKey, myPort - 1);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Making all in cart
../../../../vice/src/c64/cart/crt.c: In function 'crt_open':
../../../../vice/src/c64/cart/crt.c:160:9: warning: 'strncpy' output may be truncated copying 32 bytes from a string of length 63 [-Wstringop-truncation]
         strncpy(header->name, (char*)&crt_header[0x20], sizeof(header->name) - 1);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../vice/src/c64/cart/crt.c: In function 'crt_create':
../../../../vice/src/c64/cart/crt.c:289:5: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
     strncpy((char*)&crt_header[0x20], name, sizeof(crt_header) - 0x20);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Making all in scpu64
In file included from ../../../vice/src/scpu64/../main65816cpu.c:341,
                 from ../../../vice/src/scpu64/scpu64cpu.c:431:
../../../vice/src/scpu64/../main65816cpu.c: In function 'maincpu_mainloop':
../../../vice/src/scpu64/../65816core.c:3648:39: warning: 'p3' may be used uninitialized in this function [-Wmaybe-uninitialized]
             uint8_t bk = (uint8_t)(p3 >> 16);
                                   ~~~~^~~~~~
../../../vice/src/scpu64/../65816core.c:2554:34: note: 'p3' was declared here
         unsigned int p0, p1, p2, p3;
                                  ^~
../../../vice/src/scpu64/../65816core.c:3647:39: warning: 'p2' may be used uninitialized in this function [-Wmaybe-uninitialized]
             uint8_t hi = (uint8_t)(p2 >> 8);
                                   ~~~~^~~~~
../../../vice/src/scpu64/../65816core.c:2554:30: note: 'p2' was declared here
         unsigned int p0, p1, p2, p3;
                              ^~
../../../vice/src/scpu64/../65816core.c:3650:13: warning: 'p1' may be used uninitialized in this function [-Wmaybe-uninitialized]
             debug_main65816cpu((uint32_t)(debug_pc), debug_clk,
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                           mon_disassemble_to_string(e_comp_space,
                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                     debug_pc, op,
                                                     ~~~~~~~~~~~~~
                                                     lo, hi, bk, 1, "65816"),
                                                     ~~~~~~~~~~~~~~~~~~~~~~~~
                           debug_c, debug_x, debug_y, debug_sp, debug_pbr);
                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../vice/src/scpu64/../65816core.c:2554:26: note: 'p1' was declared here
         unsigned int p0, p1, p2, p3;
                          ^~



Making all in novte
In file included from C:/msys64/mingw64/include/gtk-3.0/gtk/gtk.h:100,
                 from ../../../../../vice/src/arch/gtk3/novte/keymap.cc:26:
C:/msys64/mingw64/include/gtk-3.0/gtk/gtkfilechooserbutton.h:66:8: warning: unnecessary parentheses in declaration of '__gtk_reserved1' [-Wparentheses]
   void (*__gtk_reserved1);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/gtkfilechooserbutton.h:67:8: warning: unnecessary parentheses in declaration of '__gtk_reserved2' [-Wparentheses]
   void (*__gtk_reserved2);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/gtkfilechooserbutton.h:68:8: warning: unnecessary parentheses in declaration of '__gtk_reserved3' [-Wparentheses]
   void (*__gtk_reserved3);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/gtkfilechooserbutton.h:69:8: warning: unnecessary parentheses in declaration of '__gtk_reserved4' [-Wparentheses]
   void (*__gtk_reserved4);
        ^
In file included from C:/msys64/mingw64/include/gtk-3.0/gtk/gtk.h:271,
                 from ../../../../../vice/src/arch/gtk3/novte/keymap.cc:26:
C:/msys64/mingw64/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:74:8: warning: unnecessary parentheses in declaration of '__gtk_reserved1' [-Wparentheses]
   void (*__gtk_reserved1);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:75:8: warning: unnecessary parentheses in declaration of '__gtk_reserved2' [-Wparentheses]
   void (*__gtk_reserved2);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:76:8: warning: unnecessary parentheses in declaration of '__gtk_reserved3' [-Wparentheses]
   void (*__gtk_reserved3);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:77:8: warning: unnecessary parentheses in declaration of '__gtk_reserved4' [-Wparentheses]
   void (*__gtk_reserved4);
        ^
In file included from C:/msys64/mingw64/include/gtk-3.0/gtk/gtk.h:100,
                 from ../../../../../vice/src/arch/gtk3/novte/vteterminal.h:25,
                 from ../../../../../vice/src/arch/gtk3/novte/novte.h:28,
                 from ../../../../../vice/src/arch/gtk3/novte/ring.h:27,
                 from ../../../../../vice/src/arch/gtk3/novte/ring.cc:24:
C:/msys64/mingw64/include/gtk-3.0/gtk/gtkfilechooserbutton.h:66:8: warning: unnecessary parentheses in declaration of '__gtk_reserved1' [-Wparentheses]
   void (*__gtk_reserved1);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/gtkfilechooserbutton.h:67:8: warning: unnecessary parentheses in declaration of '__gtk_reserved2' [-Wparentheses]
   void (*__gtk_reserved2);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/gtkfilechooserbutton.h:68:8: warning: unnecessary parentheses in declaration of '__gtk_reserved3' [-Wparentheses]
   void (*__gtk_reserved3);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/gtkfilechooserbutton.h:69:8: warning: unnecessary parentheses in declaration of '__gtk_reserved4' [-Wparentheses]
   void (*__gtk_reserved4);
        ^
In file included from C:/msys64/mingw64/include/gtk-3.0/gtk/gtk.h:271,
                 from ../../../../../vice/src/arch/gtk3/novte/vteterminal.h:25,
                 from ../../../../../vice/src/arch/gtk3/novte/novte.h:28,
                 from ../../../../../vice/src/arch/gtk3/novte/ring.h:27,
                 from ../../../../../vice/src/arch/gtk3/novte/ring.cc:24:
C:/msys64/mingw64/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:74:8: warning: unnecessary parentheses in declaration of '__gtk_reserved1' [-Wparentheses]
   void (*__gtk_reserved1);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:75:8: warning: unnecessary parentheses in declaration of '__gtk_reserved2' [-Wparentheses]
   void (*__gtk_reserved2);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:76:8: warning: unnecessary parentheses in declaration of '__gtk_reserved3' [-Wparentheses]
   void (*__gtk_reserved3);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:77:8: warning: unnecessary parentheses in declaration of '__gtk_reserved4' [-Wparentheses]
   void (*__gtk_reserved4);
        ^
In file included from C:/msys64/mingw64/include/gtk-3.0/gtk/gtk.h:100,
                 from ../../../../../vice/src/arch/gtk3/novte/vteterminal.h:25,
                 from ../../../../../vice/src/arch/gtk3/novte/novte.h:28,
                 from ../../../../../vice/src/arch/gtk3/novte/vte.cc:35:
C:/msys64/mingw64/include/gtk-3.0/gtk/gtkfilechooserbutton.h:66:8: warning: unnecessary parentheses in declaration of '__gtk_reserved1' [-Wparentheses]
   void (*__gtk_reserved1);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/gtkfilechooserbutton.h:67:8: warning: unnecessary parentheses in declaration of '__gtk_reserved2' [-Wparentheses]
   void (*__gtk_reserved2);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/gtkfilechooserbutton.h:68:8: warning: unnecessary parentheses in declaration of '__gtk_reserved3' [-Wparentheses]
   void (*__gtk_reserved3);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/gtkfilechooserbutton.h:69:8: warning: unnecessary parentheses in declaration of '__gtk_reserved4' [-Wparentheses]
   void (*__gtk_reserved4);
        ^
In file included from C:/msys64/mingw64/include/gtk-3.0/gtk/gtk.h:271,
                 from ../../../../../vice/src/arch/gtk3/novte/vteterminal.h:25,
                 from ../../../../../vice/src/arch/gtk3/novte/novte.h:28,
                 from ../../../../../vice/src/arch/gtk3/novte/vte.cc:35:
C:/msys64/mingw64/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:74:8: warning: unnecessary parentheses in declaration of '__gtk_reserved1' [-Wparentheses]
   void (*__gtk_reserved1);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:75:8: warning: unnecessary parentheses in declaration of '__gtk_reserved2' [-Wparentheses]
   void (*__gtk_reserved2);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:76:8: warning: unnecessary parentheses in declaration of '__gtk_reserved3' [-Wparentheses]
   void (*__gtk_reserved3);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:77:8: warning: unnecessary parentheses in declaration of '__gtk_reserved4' [-Wparentheses]
   void (*__gtk_reserved4);
        ^
In file included from C:/msys64/mingw64/include/gtk-3.0/gtk/gtk.h:100,
                 from ../../../../../vice/src/arch/gtk3/novte/vteaccess.cc:32:
C:/msys64/mingw64/include/gtk-3.0/gtk/gtkfilechooserbutton.h:66:8: warning: unnecessary parentheses in declaration of '__gtk_reserved1' [-Wparentheses]
   void (*__gtk_reserved1);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/gtkfilechooserbutton.h:67:8: warning: unnecessary parentheses in declaration of '__gtk_reserved2' [-Wparentheses]
   void (*__gtk_reserved2);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/gtkfilechooserbutton.h:68:8: warning: unnecessary parentheses in declaration of '__gtk_reserved3' [-Wparentheses]
   void (*__gtk_reserved3);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/gtkfilechooserbutton.h:69:8: warning: unnecessary parentheses in declaration of '__gtk_reserved4' [-Wparentheses]
   void (*__gtk_reserved4);
        ^
In file included from C:/msys64/mingw64/include/gtk-3.0/gtk/gtk.h:271,
                 from ../../../../../vice/src/arch/gtk3/novte/vteaccess.cc:32:
C:/msys64/mingw64/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:74:8: warning: unnecessary parentheses in declaration of '__gtk_reserved1' [-Wparentheses]
   void (*__gtk_reserved1);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:75:8: warning: unnecessary parentheses in declaration of '__gtk_reserved2' [-Wparentheses]
   void (*__gtk_reserved2);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:76:8: warning: unnecessary parentheses in declaration of '__gtk_reserved3' [-Wparentheses]
   void (*__gtk_reserved3);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:77:8: warning: unnecessary parentheses in declaration of '__gtk_reserved4' [-Wparentheses]
   void (*__gtk_reserved4);
        ^
In file included from C:/msys64/mingw64/include/gtk-3.0/gtk/gtk.h:100,
                 from ../../../../../vice/src/arch/gtk3/novte/vtedraw.cc:33:
C:/msys64/mingw64/include/gtk-3.0/gtk/gtkfilechooserbutton.h:66:8: warning: unnecessary parentheses in declaration of '__gtk_reserved1' [-Wparentheses]
   void (*__gtk_reserved1);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/gtkfilechooserbutton.h:67:8: warning: unnecessary parentheses in declaration of '__gtk_reserved2' [-Wparentheses]
   void (*__gtk_reserved2);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/gtkfilechooserbutton.h:68:8: warning: unnecessary parentheses in declaration of '__gtk_reserved3' [-Wparentheses]
   void (*__gtk_reserved3);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/gtkfilechooserbutton.h:69:8: warning: unnecessary parentheses in declaration of '__gtk_reserved4' [-Wparentheses]
   void (*__gtk_reserved4);
        ^
In file included from C:/msys64/mingw64/include/gtk-3.0/gtk/gtk.h:271,
                 from ../../../../../vice/src/arch/gtk3/novte/vtedraw.cc:33:
C:/msys64/mingw64/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:74:8: warning: unnecessary parentheses in declaration of '__gtk_reserved1' [-Wparentheses]
   void (*__gtk_reserved1);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:75:8: warning: unnecessary parentheses in declaration of '__gtk_reserved2' [-Wparentheses]
   void (*__gtk_reserved2);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:76:8: warning: unnecessary parentheses in declaration of '__gtk_reserved3' [-Wparentheses]
   void (*__gtk_reserved3);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:77:8: warning: unnecessary parentheses in declaration of '__gtk_reserved4' [-Wparentheses]
   void (*__gtk_reserved4);
        ^
In file included from C:/msys64/mingw64/include/gtk-3.0/gtk/gtk.h:100,
                 from ../../../../../vice/src/arch/gtk3/novte/vtegtk.cc:44:
C:/msys64/mingw64/include/gtk-3.0/gtk/gtkfilechooserbutton.h:66:8: warning: unnecessary parentheses in declaration of '__gtk_reserved1' [-Wparentheses]
   void (*__gtk_reserved1);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/gtkfilechooserbutton.h:67:8: warning: unnecessary parentheses in declaration of '__gtk_reserved2' [-Wparentheses]
   void (*__gtk_reserved2);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/gtkfilechooserbutton.h:68:8: warning: unnecessary parentheses in declaration of '__gtk_reserved3' [-Wparentheses]
   void (*__gtk_reserved3);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/gtkfilechooserbutton.h:69:8: warning: unnecessary parentheses in declaration of '__gtk_reserved4' [-Wparentheses]
   void (*__gtk_reserved4);
        ^
In file included from C:/msys64/mingw64/include/gtk-3.0/gtk/gtk.h:271,
                 from ../../../../../vice/src/arch/gtk3/novte/vtegtk.cc:44:
C:/msys64/mingw64/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:74:8: warning: unnecessary parentheses in declaration of '__gtk_reserved1' [-Wparentheses]
   void (*__gtk_reserved1);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:75:8: warning: unnecessary parentheses in declaration of '__gtk_reserved2' [-Wparentheses]
   void (*__gtk_reserved2);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:76:8: warning: unnecessary parentheses in declaration of '__gtk_reserved3' [-Wparentheses]
   void (*__gtk_reserved3);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:77:8: warning: unnecessary parentheses in declaration of '__gtk_reserved4' [-Wparentheses]
   void (*__gtk_reserved4);
        ^
In file included from C:/msys64/mingw64/include/gtk-3.0/gtk/gtk.h:100,
                 from ../../../../../vice/src/arch/gtk3/novte/vteterminal.h:25,
                 from ../../../../../vice/src/arch/gtk3/novte/novte.h:28,
                 from ../../../../../vice/src/arch/gtk3/novte/vteseq.cc:33:
C:/msys64/mingw64/include/gtk-3.0/gtk/gtkfilechooserbutton.h:66:8: warning: unnecessary parentheses in declaration of '__gtk_reserved1' [-Wparentheses]
   void (*__gtk_reserved1);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/gtkfilechooserbutton.h:67:8: warning: unnecessary parentheses in declaration of '__gtk_reserved2' [-Wparentheses]
   void (*__gtk_reserved2);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/gtkfilechooserbutton.h:68:8: warning: unnecessary parentheses in declaration of '__gtk_reserved3' [-Wparentheses]
   void (*__gtk_reserved3);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/gtkfilechooserbutton.h:69:8: warning: unnecessary parentheses in declaration of '__gtk_reserved4' [-Wparentheses]
   void (*__gtk_reserved4);
        ^
In file included from C:/msys64/mingw64/include/gtk-3.0/gtk/gtk.h:271,
                 from ../../../../../vice/src/arch/gtk3/novte/vteterminal.h:25,
                 from ../../../../../vice/src/arch/gtk3/novte/novte.h:28,
                 from ../../../../../vice/src/arch/gtk3/novte/vteseq.cc:33:
C:/msys64/mingw64/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:74:8: warning: unnecessary parentheses in declaration of '__gtk_reserved1' [-Wparentheses]
   void (*__gtk_reserved1);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:75:8: warning: unnecessary parentheses in declaration of '__gtk_reserved2' [-Wparentheses]
   void (*__gtk_reserved2);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:76:8: warning: unnecessary parentheses in declaration of '__gtk_reserved3' [-Wparentheses]
   void (*__gtk_reserved3);
        ^
C:/msys64/mingw64/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:77:8: warning: unnecessary parentheses in declaration of '__gtk_reserved4' [-Wparentheses]
   void (*__gtk_reserved4);
        ^



../../../../vice/src/arch/gtk3/uinetplay.c: In function 'netplay_update_resources':
../../../../vice/src/arch/gtk3/uinetplay.c:119:5: warning: 'strncpy' specified bound 256 equals destination size [-Wstringop-truncation]
     strncpy(p, gtk_entry_get_text(GTK_ENTRY(np_port)), 256);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Making all in hvsc
../../vice/src/debug.c: In function 'debug_maincpu':
../../vice/src/debug.c:453:46: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=]
         int line_len = sprintf(tempstr, "%s\n", st);
                                              ^
../../vice/src/debug.c:453:24: note: 'sprintf' output between 2 and 129 bytes into a destination of size 128
         int line_len = sprintf(tempstr, "%s\n", st);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../vice/src/debug.c: In function 'debug_main65816cpu':
../../vice/src/debug.c:453:46: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=]
         int line_len = sprintf(tempstr, "%s\n", st);
                                              ^
../../vice/src/debug.c:453:24: note: 'sprintf' output between 2 and 129 bytes into a destination of size 128
         int line_len = sprintf(tempstr, "%s\n", st);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../vice/src/debug.c: In function 'debug_drive':
../../vice/src/debug.c:453:46: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=]
         int line_len = sprintf(tempstr, "%s\n", st);
                                              ^
../../vice/src/debug.c:453:24: note: 'sprintf' output between 2 and 129 bytes into a destination of size 128
         int line_len = sprintf(tempstr, "%s\n", st);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../vice/src/util.c: In function 'util_add_extension_maxpath':
../../vice/src/util.c:1431:5: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
     sprintf(name, "%s%c%s", name, FSDEV_EXT_SEP_CHR, extension);
     ^~~~~~~


  • compyx (x64, Windows 10/msys2, GCC 8.2.0, SDL2) (r35435)
Making all in sdl
In file included from ../../../../vice/src/arch/sdl/archdep.c:54:
In function 'system_mbstowcs',
    inlined from 'system_mbstowcs_alloc' at ../../../../vice/src/arch/sdl/archdep_win32.c:197:5,
    inlined from 'archdep_default_logger' at ../../../../vice/src/arch/sdl/archdep_win32.c:401:14:
../../../../vice/src/arch/sdl/archdep_win32.c:184:5: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=]
     strncpy(wcs, mbs, len);
     ^~~~~~~~~~~~~~~~~~~~~~
../../../../vice/src/arch/sdl/archdep_win32.c: In function 'archdep_default_logger':
../../../../vice/src/arch/sdl/archdep_win32.c:197:31: note: length computed here
     system_mbstowcs(wcs, mbs, strlen(mbs) + 1);
                               ^~~~~~~~~~~

clang

  • gpz (x86, Linux/Gentoo, 64bit, clang 5.0.1, GTK3) (3.2 tarball)
CC=clang CXX=clang LD=clang ./configure --enable-native-tools --enable-arch=native --prefix=/usr/games/ --enable-parsid --with-midas --with-resid --with-xaw3d --with-arts --with-x --enable-native-gtk3ui --enable-ethernet --with-pulse --with-sdlsound --enable-fullscreen --enable-cpuhistory --enable-static-ffmpeg

note: here compiling using clang breaks in either ffmpeg or resid

Making all in gfxoutputdrv
ffmpegdrv.c:126:36: warning: missing field 'next_pts' initializer [-Wmissing-field-initializers]
static OutputStream audio_st = { 0 };
                                   ^
ffmpegdrv.c:139:36: warning: missing field 'next_pts' initializer [-Wmissing-field-initializers]
static OutputStream video_st = { 0 };
                                   ^
ffmpegdrv.c:512:24: warning: missing field 'pts' initializer [-Wmissing-field-initializers]
    AVPacket pkt = { 0 };
                       ^
ffmpegdrv.c:981:28: warning: missing field 'pts' initializer [-Wmissing-field-initializers]
        AVPacket pkt = { 0 };
                           ^

Making all in base
keysetdialog.c:98:44: warning: suggest braces around initialization of subobject [-Wmissing-braces]
static GtkWidget *keyset_buttons[3][3] = { NULL };
                                           ^~~~
                                           {   }                                                                                                                                                     
/usr/lib64/llvm/5/bin/../../../../lib/clang/5.0.1/include/stddef.h:105:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^~~~~~~~~~
1 warning generated.
videopalettewidget.c:90:9: warning: unused variable 'index' [-Wunused-variable]
    int index = gtk_combo_box_get_active(combo);
        ^
1 warning generated.
ui.c:427:24: warning: unused variable 'tmp' [-Wunused-variable]
                gchar *tmp = g_filename_from_uri(files[i], NULL, NULL);
                       ^
1 warning generated.
uinetplay_new.c:88:9: warning: unused variable 'state' [-Wunused-variable]
    int state = gtk_switch_get_active(widget);
        ^

Making all in ffmpeg
In file included from info.c:34:
./infocontrib.h:293:8: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
"  Andr<E9> Fachat <fachat@physik.tu-chemnitz.de>\n"
       ^~~~
./infocontrib.h:343:12: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
"  Paul Dub<E9> \n"
           ^~~~
./infocontrib.h:444:8: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
"  Istv<E1>n F<E1>bi<E1>n\n"
       ^~~~   ~~~~  ~~~~
./infocontrib.h:532:11: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
"  Frank K<F6>nig <frank_koenig@t-online.de>\n"
          ^~~~
./infocontrib.h:571:11: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
"  Marko M<E4>kel<E4> <msmakela@gmail.com>\n"
          ^~~~   ~~~~
./infocontrib.h:622:10: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
"  Lasse <D6><F6>rni <loorni@mail.student.oulu.fi>\n"
         ^~~~~~~~
./infocontrib.h:655:14: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
"  Pablo Rold<E1>n <pdroldan@yahoo.com>\n"
             ^~~~
./infocontrib.h:799:19: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
"  Peternel, Per H<E5>kan Sundell and David Horrocks for writing\n"
                  ^~~~
./infocontrib.h:841:25: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
    { "1996-2001", "Andr<E9> Fachat", "Andr<E9> Fachat <fachat@physik.tu-chemnitz.de>" },
                        ^~~~
./infocontrib.h:841:41: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
    { "1996-2001", "Andr<E9> Fachat", "Andr<E9> Fachat <fachat@physik.tu-chemnitz.de>" },
                                           ^~~~
./infocontrib.h:862:29: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
    { "2004-2017", "Paul Dub<E9>", "French", "Paul Dub<E9> " },
                            ^~~~
./infocontrib.h:862:52: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
    { "2004-2017", "Paul Dub<E9>", "French", "Paul Dub<E9> " },
                                                      ^~~~
12 warnings generated.
zfile.c:490:17: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]
                !strcasecmp(tmp + l - len, search) != 0) {
                ^                                  ~~
zfile.c:490:17: note: add parentheses after the '!' to evaluate the comparison first
                !strcasecmp(tmp + l - len, search) != 0) {
                ^
                 (                                     )                                                                                                                                             
zfile.c:490:17: note: add parentheses around left hand side expression to silence this warning
                !strcasecmp(tmp + l - len, search) != 0) {
                ^
                (                                 )                                                                                                                                                  
1 warning generated.