Warnings from vs 2013 community eidtion with amost all warnings turned on. Compiled source from lua-5.3.0-rc2.tar.gz
Compilation for win32 dll.
Command line options:
/GS /GL /analyze- /Wall /wd"4711" /wd"4820" /Gy /Zc:wchar_t /Gm- /Ox /Ob2 /Fd"C:\work\lua\int\luadll\Release\x86\vc120.pdb" /fp:precise /D "LUA_COMPAT_ALL" /D "_CRT_SECURE_NO_WARNINGS" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "LUA_BUILD_AS_DLL" /D "_WINDLL" /D "_MBCS" /errorReport:prompt /WX- /Zc:forScope /Gd /Oy /Oi /MD /Fa"C:\work\lua\int\luadll\Release\x86\" /EHsc /nologo /Fo"C:\work\lua\int\luadll\Release\x86\" /Ot /Fp"C:\work\lua\int\luadll\Release\x86\lua53.pch"
Warnigns:
lapi.c(863): warning C4242: '=' : conversion from 'const int' to 'lu_byte', possible loss of data
lapi.c(1052): warning C4242: '=' : conversion from 'int' to 'lu_byte', possible loss of data
lauxlib.c(614): warning C4242: '=' : conversion from 'int' to 'char', possible loss of data
lauxlib.c(664): warning C4242: '=' : conversion from 'int' to 'char', possible loss of data
lcode.c(298): warning C4242: '+=' : conversion from 'int' to 'lu_byte', possible loss of data
lcode.c(752): warning C4242: '=' : conversion from 'int' to 'lu_byte', possible loss of data
lcode.c(753): warning C4242: '=' : conversion from 'int' to 'short', possible loss of data
lcode.c(765): warning C4127: conditional _expression_ is constant
lcode.c(966): warning C4244: '=' : conversion from 'int' to 'lu_byte', possible loss of data
ldo.c(328): warning C4242: '=' : conversion from 'int' to 'short', possible loss of data
ldo.c(359): warning C4242: '=' : conversion from 'int' to 'short', possible loss of data
ldo.c(594): warning C4242: '=' : conversion from 'int' to 'unsigned short', possible loss of data
lgc.c(202): warning C4242: '=' : conversion from 'int' to 'lu_byte', possible loss of data
lgc.c(806): warning C4242: '=' : conversion from 'int' to 'lu_byte', possible loss of data
lgc.c(1021): warning C4242: '=' : conversion from 'int' to 'lu_byte', possible loss of data
liolib.c(385): warning C4242: '=' : conversion from 'int' to 'char', possible loss of data
liolib.c(474): warning C4242: '=' : conversion from 'int' to 'char', possible loss of data
liolib.c(481): warning C4242: '=' : conversion from 'int' to 'char', possible loss of data
llex.c(60): warning C4310: cast truncates constant value
lparser.c(437): warning C4242: '=' : conversion from 'int' to 'short', possible loss of data
lparser.c(438): warning C4242: '=' : conversion from 'int' to 'short', possible loss of data
lparser.c(657): warning C4242: '=' : conversion from 'int' to 'lu_byte', possible loss of data
lparser.c(851): warning C4244: '=' : conversion from 'int' to 'lu_byte', possible loss of data
lparser.c(1123): warning C4242: '=' : conversion from 'int' to 'lu_byte', possible loss of data
lparser.c(1128): warning C4242: '=' : conversion from 'int' to 'short', possible loss of data
lparser.c(1161): warning C4244: '-=' : conversion from 'int' to 'lu_byte', possible loss of data
lstring.c(155): warning C4310: cast truncates constant value
lstring.c(173): warning C4310: cast truncates constant value
lstring.c(179): warning C4242: '=' : conversion from 'const int' to 'lu_byte', possible loss of data
lstrlib.c(98): warning C4242: '=' : conversion from 'int' to 'char', possible loss of data
lstrlib.c(111): warning C4242: '=' : conversion from 'int' to 'char', possible loss of data
lstrlib.c(1155): warning C4310: cast truncates constant value
lvm.c(381): warning C4310: cast truncates constant value
lapi.c(1090): warning C4702: unreachable code
loslib.c(222): warning C4702: unreachable code
Compilation for win64 dll.
Command line options:
/GS /GL /Wall /wd"4711" /wd"4820" /Gy /Zc:wchar_t /Gm- /Ox /Ob2 /Fd"C:\work\lua\int\luadll\Release\x64\vc120.pdb" /fp:precise /D "LUA_COMPAT_ALL" /D "LUA_BUILD_AS_DLL" /D "_CRT_SECURE_NO_WARNINGS" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "LUADLL_EXPORTS" /D "_WINDLL" /D "_MBCS" /errorReport:prompt /WX- /Zc:forScope /Gd /Oy /Oi /MD /Fa"C:\work\lua\int\luadll\Release\x64\" /EHsc /nologo /Fo"C:\work\lua\int\luadll\Release\x64\" /Ot /Fp"C:\work\lua\int\luadll\Release\x64\lua53.pch"
Warnings:
lapi.c(863): warning C4242: '=' : conversion from 'const int' to 'lu_byte', possible loss of data
lapi.c(1052): warning C4242: '=' : conversion from 'int' to 'lu_byte', possible loss of data
lauxlib.c(614): warning C4242: '=' : conversion from 'int' to 'char', possible loss of data
lauxlib.c(664): warning C4242: '=' : conversion from 'int' to 'char', possible loss of data
lcode.c(298): warning C4242: '+=' : conversion from 'int' to 'lu_byte', possible loss of data
lcode.c(752): warning C4242: '=' : conversion from 'int' to 'lu_byte', possible loss of data
lcode.c(753): warning C4242: '=' : conversion from 'int' to 'short', possible loss of data
lcode.c(765): warning C4127: conditional _expression_ is constant
lcode.c(966): warning C4244: '=' : conversion from 'int' to 'lu_byte', possible loss of data
ldo.c(328): warning C4242: '=' : conversion from 'int' to 'short', possible loss of data
ldo.c(359): warning C4242: '=' : conversion from 'int' to 'short', possible loss of data
ldo.c(594): warning C4242: '=' : conversion from 'int' to 'unsigned short', possible loss of data
lgc.c(202): warning C4242: '=' : conversion from 'int' to 'lu_byte', possible loss of data
lgc.c(806): warning C4242: '=' : conversion from 'int' to 'lu_byte', possible loss of data
lgc.c(1021): warning C4242: '=' : conversion from 'int' to 'lu_byte', possible loss of data
liolib.c(385): warning C4242: '=' : conversion from 'int' to 'char', possible loss of data
liolib.c(474): warning C4242: '=' : conversion from 'int' to 'char', possible loss of data
liolib.c(481): warning C4242: '=' : conversion from 'int' to 'char', possible loss of data
lparser.c(437): warning C4242: '=' : conversion from 'int' to 'short', possible loss of data
lparser.c(438): warning C4242: '=' : conversion from 'int' to 'short', possible loss of data
lparser.c(657): warning C4242: '=' : conversion from 'int' to 'lu_byte', possible loss of data
lparser.c(851): warning C4244: '=' : conversion from 'int' to 'lu_byte', possible loss of data
lparser.c(1123): warning C4242: '=' : conversion from 'int' to 'lu_byte', possible loss of data
lparser.c(1128): warning C4242: '=' : conversion from 'int' to 'short', possible loss of data
lparser.c(1161): warning C4244: '-=' : conversion from 'int' to 'lu_byte', possible loss of data
lstring.c(179): warning C4242: '=' : conversion from 'const int' to 'lu_byte', possible loss of data
lstrlib.c(98): warning C4242: '=' : conversion from 'int' to 'char', possible loss of data
lstrlib.c(111): warning C4242: '=' : conversion from 'int' to 'char', possible loss of data
lstrlib.c(1155): warning C4310: cast truncates constant value
lapi.c(1090): warning C4702: unreachable code
loslib.c(222): warning C4702: unreachable code