Warnings: Difference between revisions

From vice-emu
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
* common (Linux, GCC >= 4.4.2) (r25058)
* gpz (x86, Linux/Gentoo, 64bit, GCC, GnomeUI) (r28471)


<pre>
<pre>
Making all in monitor
-
mon_lex.c:3246:17: warning: ‘yyunput’ defined but not used
mon_lex.c:3287:16: warning: ‘input’ defined but not used
 
Making all in c64dtv
In file included from ../maincpu.c:498:0,
                from c64dtvcpu.c:473:
../6510core.c: In function ‘maincpu_mainloop’:
../6510core.c:1942:9: warning: dereferencing type-punned pointer will break strict-aliasing rules
../6510core.c:1942:9: warning: dereferencing type-punned pointer will break strict-aliasing rules
../6510core.c:1942:9: warning: dereferencing type-punned pointer will break strict-aliasing rules
 
top level:
network.c: In function ‘network_test_delay’:
network.c:306:13: warning: dereferencing type-punned pointer will break strict-aliasing rules
network.c:310:13: warning: dereferencing type-punned pointer will break strict-aliasing rules
</pre>
</pre>


* common, if readline is not installed (Linux, GCC >= 4.4.2) (r25035)
* gpz (x86, Linux/Gentoo, 64bit, GCC, SDL) (r28471)


<pre>
<pre>
Line 26: Line 11:
</pre>
</pre>


* gpz (x86, Linux/Gentoo, 64bit, GCC) (r25009)
* gpz (Win32 crosscompile on Linux/mingw32, GCC 3.x) (r28471)


note: this is with ffmpeg-0.7.8
<pre>
Making all in monitor
mon_assemble65816.c: In function `mon_assemble_instr':
mon_assemble65816.c:162: warning: comparison is always true due to limited range of data type


<pre>
Making all in win32
Making all in gfxoutputdrv
ui-resources.c: In function `set_single_cpu':
In file included from ffmpegdrv.c:35:0:
ui-resources.c:124: warning: passing arg 2 of `GetProcessAffinityMask' from incompatible pointer type
ffmpeglib.h:87:1: warning: ‘ByteIOContext’ is deprecated (declared at /usr/include/libavformat/avio.h:50)
ui-resources.c:124: warning: passing arg 3 of `GetProcessAffinityMask' from incompatible pointer type
ffmpeglib.h:88:1: warning: ‘ByteIOContext’ is deprecated (declared at /usr/include/libavformat/avio.h:50)
 
In file included from ffmpeglib.c:32:0:
socket.c: In function `vice_network_server':
../../src/gfxoutputdrv/ffmpeglib.h:87:1: warning: ‘ByteIOContext’ is deprecated (declared at /usr/include/libavformat/avio.h:50)
socket.c:411: warning: passing arg 4 of `setsockopt' from incompatible pointer type
../../src/gfxoutputdrv/ffmpeglib.h:88:1: warning: ‘ByteIOContext’ is deprecated (declared at /usr/include/libavformat/avio.h:50)
</pre>
</pre>


Line 46: Line 33:
vice\src\zfile.c(202) : warning C4018: '<' : signed/unsigned mismatch
vice\src\zfile.c(202) : warning C4018: '<' : signed/unsigned mismatch
vice\src\monitor\mon_lex.c(2999) : warning C4018: '<' : signed/unsigned mismatch
vice\src\monitor\mon_lex.c(2999) : warning C4018: '<' : signed/unsigned mismatch
</pre>
* gpz (Win32 crosscompile on Linux/mingw32, GCC 3.x) (r25129)
<pre>
Making all in sid
sid-resources.c: In function `add_sid_engine_models':
sid-resources.c:454: warning: assignment discards qualifiers from pointer target type
Making all in win32
ui-resources.c: In function `set_single_cpu':
ui-resources.c:121: warning: passing arg 2 of `GetProcessAffinityMask' from incompatible pointer type
ui-resources.c:121: warning: passing arg 3 of `GetProcessAffinityMask' from incompatible pointer type
uimon.c: In function `iOpenGeneric':
uimon.c:385: warning: passing arg 1 of `uimon_icep' from incompatible pointer type
uimon.c: In function `generic_window_proc':
uimon.c:2412: warning: passing arg 1 of `uimon_iep' from incompatible pointer type
</pre>
* gpz (Win32 crosscompile on Linux/mingw32, GCC 3.x) (r27718)
<pre>
fsimage-gcr.c: In function `fsimage_gcr_seek_half_track':
fsimage-gcr.c:95: warning: comparison is always false due to limited range of data type
fsimage-probe.c: In function `disk_image_check_for_gcr':
fsimage-probe.c:462: warning: comparison is always false due to limited range of data type
fsimage-probe.c:470: warning: comparison is always false due to limited range of data type
mon_assemble65816.c: In function `mon_assemble_instr':
mon_assemble65816.c:162: warning: comparison is always true due to limited range of data type
scpu64cpu.c:387: warning: passing arg 2 of `snapshot_module_read_dword_into_uint' from incompatible pointer type
scpu64cpu.c:388: warning: passing arg 2 of `snapshot_module_read_dword_into_uint' from incompatible pointer type
scpu64cpu.c:389: warning: passing arg 2 of `snapshot_module_read_dword_into_uint' from incompatible pointer type
scpu64cpu.c:391: warning: passing arg 2 of `snapshot_module_read_dword_into_uint' from incompatible pointer type
ui-resources.c:121: warning: passing arg 2 of `GetProcessAffinityMask' from incompatible pointer type
ui-resources.c:121: warning: passing arg 3 of `GetProcessAffinityMask' from incompatible pointer type
platform_windows_runtime_os.c:801: warning: passing arg 1 of `GetVersionExA' from incompatible pointer type
socket.c:411: warning: passing arg 4 of `setsockopt' from incompatible pointer type
also TONS of warnings about symbols from winuser.h and winnt.h being redefined in src/arch/win32/rescommon.h
</pre>
</pre>

Revision as of 11:55, 30 September 2014

  • gpz (x86, Linux/Gentoo, 64bit, GCC, GnomeUI) (r28471)
-
  • gpz (x86, Linux/Gentoo, 64bit, GCC, SDL) (r28471)
-
  • gpz (Win32 crosscompile on Linux/mingw32, GCC 3.x) (r28471)
Making all in monitor
mon_assemble65816.c: In function `mon_assemble_instr':
mon_assemble65816.c:162: warning: comparison is always true due to limited range of data type

Making all in win32
ui-resources.c: In function `set_single_cpu':
ui-resources.c:124: warning: passing arg 2 of `GetProcessAffinityMask' from incompatible pointer type
ui-resources.c:124: warning: passing arg 3 of `GetProcessAffinityMask' from incompatible pointer type

socket.c: In function `vice_network_server':
socket.c:411: warning: passing arg 4 of `setsockopt' from incompatible pointer type
  • strik (x86, Windows, 32bit, MSVC6, release build) (r22786)

For the debug build, some warnings are missing.

vice\src\zfile.c(202) : warning C4018: '<' : signed/unsigned mismatch
vice\src\monitor\mon_lex.c(2999) : warning C4018: '<' : signed/unsigned mismatch