[Bf-committers] warnings list

Tom M letterrip at gmail.com
Sat Nov 11 22:07:52 CET 2006


Hi all,

here are warnings that I'm seeing when doing a clean compile with gcc
3.3, (some groups of warnings I've sent to specific module maintainers
so this isn't the complete warnings list).  I've moved the 'warning:
ignoring #pragma warning' and sound related warnings to the end also
to reduce the noise.

LetterRIp

 -- BLO_readblenfile.c --
In file included from BLO_readblenfile.c:56:
../../blenkernel/BKE_blender.h:49: warning: declaration of
'filelength' shadows a global declaration
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/io.h:277:
warning: shadowed declaration is here

 -- tiff.c --
tiff.c: In function `imb_loadtiff':
tiff.c:326: warning: dereferencing type-punned pointer will break
strict-aliasing rules

 -- envmap.c --
envmap.c: In function `envmaptex':
envmap.c:632: warning: 'ima' might be used uninitialized in this function

 -- util.c --
util.c: In function `BLI_make_file_string':
util.c:1079: warning: passing arg 2 of `BLI_strncpy' discards
qualifiers from pointer target type
util.c:1085: warning: passing arg 2 of `BLI_strncpy' discards
qualifiers from pointer target type
util.c: In function `BLI_split_dirfile':
util.c:1151: warning: passing arg 1 of `BLI_char_switch' discards
qualifiers from pointer target type
util.c:1156: warning: passing arg 2 of `BLI_strncpy' discards
qualifiers from pointer target type
util.c:1159: warning: passing arg 2 of `BLI_strncpy' discards
qualifiers from pointer target type
util.c:1164: warning: passing arg 1 of `BLI_strncpy' discards
qualifiers from pointer target type
util.c:1188: warning: passing arg 2 of `BLI_strncpy' discards
qualifiers from pointer target type
util.c:1190: warning: passing arg 2 of `BLI_strncpy' discards
qualifiers from pointer target type
util.c:1204: warning: passing arg 2 of `BLI_strncpy' discards
qualifiers from pointer target type

 -- softbody.c --
softbody.c: In function `free_scratch':
softbody.c:927: warning: passing arg 3 of `BLI_ghash_free' from
incompatible pointer type
softbody.c: At top level:
softbody.c:1039: warning: 'query_external_time' defined but not used
softbody.c:1045: warning: 'query_internal_time' defined but not used

 -- stubs.c --
stubs.c:293: warning: no previous prototype for 'sculptmode_free_all'

-- drawobject.c --
drawobject.c: In function `draw_mesh_object':
drawobject.c:2178: warning: implicit declaration of function
`modifiers_getVirtualModifierList'

 -- editconstraint.c --
editconstraint.c: In function `rename_constraint':
editconstraint.c:827: warning: 'channame' might be used uninitialized
in this function

 -- editmesh_mods.c --
editmesh_mods.c: In function `mouse_mesh':
editmesh_mods.c:1531: warning: 'select' might be used uninitialized in
this function
editmesh_mods.c:1531: warning: 'select' might be used uninitialized in
this function
 -- editmesh_tools.c --
editmesh_tools.c: In function `join_triangles':
editmesh_tools.c:3226: warning: 'minarea' might be used uninitialized
in this function
editmesh_tools.c:3226: warning: 'maxarea' might be used uninitialized
in this function
editmesh_tools.c: In function `collapseEdges':
editmesh_tools.c:6106: warning: 'collectionfound' might be used
uninitialized in this function
editmesh_tools.c:6106: warning: 'collectionfound' might be used
uninitialized in this function

 -- filesel.c --
In file included from filesel.c:40:
../blenlib/BLI_winstuff.h:34: warning: ignoring #pragma warning
filesel.c: In function `print_line':
filesel.c:890: warning: unused variable `utf_8'
filesel.c: In function `drawfilespace':
filesel.c:1102: warning: unused variable `utf_8'
filesel.c: At top level:
filesel.c:147: warning: 'string_to_utf8' declared `static' but never defined

 -- glutil.c --
glutil.c:641: warning: 'is_a_really_crappy_intel_card' defined but not used


 -- parametrizer.c --
parametrizer.c:2435: warning: 'p_chart_abf_solve' defined but not used


 -- Blender.c --
Geometry.h:41: warning: 'M_Geometry_PolyFill' declared `static' but
never defined
Geometry.h:42: warning: 'M_Geometry_LineIntersect2D' declared `static'
but never defined

 -- Geometry.c --
Geometry.c:267:2: warning: no newline at end of file
 -- Group.c --
Group.c: In function `GroupObSeq_add':
Group.c:731: warning: unused variable `base'
 -- Ipo.c --
Ipo.c:369: warning: initialization from incompatible pointer type

 -- Pose.c --
Pose.c:338: warning: 'Pose_compare' defined but not used

 -- Scene.c --
Scene.c: In function `Scene_getAttr':
Scene.c:284: warning: suggest parentheses around + or - in operand of &
Scene.c: In function `SceneObSeq_item':
Scene.c:1171: warning: suggest explicit braces to avoid ambiguous `else'
Scene.c: In function `SceneObSeq_new':
Scene.c:1422: warning: suggest parentheses around + or - in operand of &
Scene.c:1294: warning: 'type' might be used uninitialized in this function

 -- constant.c --
constant.c:118: warning: 'constant_getAttr' defined but not used

 -- vector.c --
vector.c: In function `Vector_imul':
vector.c:648: warning: 'dot' might be used uninitialized in this function

 -- SYS_SingletonSystem.cpp --
In file included from SYS_SingletonSystem.h:38,
                 from SYS_SingletonSystem.cpp:34:
/home/TomM/bf/blender/../lib/windows/string/include/STR_HashedString.h:
In function `dword STR_gHash(const void*, int, dword)':
/home/TomM/bf/blender/../lib/windows/string/include/STR_HashedString.h:94:
warning: cast from `const void*' to `byte*' discards qualifiers from
pointer target type
 -- SYS_System.cpp --
In file included from SYS_SingletonSystem.h:38,
                 from SYS_System.cpp:35:
/home/TomM/bf/blender/../lib/windows/string/include/STR_HashedString.h:
In function `dword STR_gHash(const void*, int, dword)':
/home/TomM/bf/blender/../lib/windows/string/include/STR_HashedString.h:94:
warning: cast from `const void*' to `byte*' discards qualifiers from
pointer target type







-- DT_RespTable.cpp --
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_uninitialized.h:
In member function `void std::vector<_Tp,
_Alloc>::_M_fill_insert(__gnu_cxx::__normal_iterator<typename
_Alloc::pointer, std::vector<_Tp, _Alloc> >, size_t, const _Tp&) [with
_Tp = DT_ResponseList, _Alloc = std::allocator<DT_ResponseList>]':
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_uninitialized.h:82:
warning: '__cur' might be used uninitialized in this function
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_uninitialized.h:82:
warning: '__cur' might be used uninitialized in this function

 -- BMF_BitmapFont.cpp --
BMF_BitmapFont.cpp:47: warning: ignoring #pragma warning

 -- BSP_CSGMesh.cpp --
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_uninitialized.h:
In member function `BSP_CSGMesh* BSP_CSGMesh::NewCopy() const':
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_uninitialized.h:82:
warning: '__cur' might be used uninitialized in this function
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_uninitialized.h:82:
warning: '__cur' might be used uninitialized in this function
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_uninitialized.h:82:
warning: '__cur' might be used uninitialized in this function




 -- creator.c --
In file included from creator.c:40:
../blender/blenlib/BLI_winstuff.h:34: warning: ignoring #pragma warning

 -- depsgraph.c --
In file included from depsgraph.c:36:
../../blenlib/BLI_winstuff.h:34: warning: ignoring #pragma warning

 -- node.c --
node.c:61: warning: ignoring #pragma mark
node.c:228: warning: ignoring #pragma mark
node.c:721: warning: ignoring #pragma mark
node.c:972: warning: ignoring #pragma mark
node.c:1196: warning: ignoring #pragma mark
node.c:1315: warning: ignoring #pragma mark
node.c:1458: warning: ignoring #pragma mark
node.c:1548: warning: ignoring #pragma mark

In file included from drawdeps.c:36:
../blenlib/BLI_winstuff.h:34: warning: ignoring #pragma warning

 -- drawimasel.c --
drawimasel.c:46: warning: ignoring #pragma warning

 -- drawnla.c --
drawnla.c:38: warning: ignoring #pragma warning

 -- drawtext.c --
In file included from drawtext.c:46:
../blenlib/BLI_winstuff.h:34: warning: ignoring #pragma warning


 -- imagepaint.c --
In file included from imagepaint.c:47:
../blenlib/BLI_winstuff.h:34: warning: ignoring #pragma warning
 -- imasel.c --
In file included from imasel.c:40:
../blenlib/BLI_winstuff.h:34: warning: ignoring #pragma warning

 -- renderwin.c --
In file included from renderwin.c:48:
../blenlib/BLI_winstuff.h:34: warning: ignoring #pragma warning

 -- toets.c --
In file included from toets.c:42:
../blenlib/BLI_winstuff.h:34: warning: ignoring #pragma warning

 -- usiblender.c --
In file included from usiblender.c:46:
../blenlib/BLI_winstuff.h:34: warning: ignoring #pragma warning







 -- SND_AudioDevice.cpp --
In file included from ../SND_IAudioDevice.h:37,
                 from SND_AudioDevice.h:35,
                 from SND_AudioDevice.cpp:32:
../SND_WaveCache.h:38: warning: ignoring #pragma warning
SND_AudioDevice.cpp:38: warning: ignoring #pragma warning
 -- SND_C-api.cpp --
In file included from ../SND_IAudioDevice.h:37,
                 from ../SND_DeviceManager.h:40,
                 from SND_C-api.cpp:42:
../SND_WaveCache.h:38: warning: ignoring #pragma warning
In file included from SND_C-api.cpp:43:
../SND_Scene.h:38: warning: ignoring #pragma warning
SND_C-api.cpp:46: warning: ignoring #pragma warning
 -- SND_CDObject.cpp --
 -- SND_DeviceManager.cpp --
In file included from ../SND_IAudioDevice.h:37,
                 from ../SND_DeviceManager.h:40,
                 from SND_DeviceManager.cpp:41:
../SND_WaveCache.h:38: warning: ignoring #pragma warning
 -- SND_IdObject.cpp --
 -- SND_Scene.cpp --
SND_Scene.cpp:42: warning: ignoring #pragma warning
In file included from SND_Scene.cpp:45:
../SND_Scene.h:38: warning: ignoring #pragma warning
In file included from ../SND_IAudioDevice.h:37,
                 from SND_Scene.cpp:47:
../SND_WaveCache.h:38: warning: ignoring #pragma warning
 -- SND_SoundListener.cpp --
 -- SND_SoundObject.cpp --
 -- SND_Utils.cpp --
 -- SND_WaveCache.cpp --
SND_WaveCache.cpp:42: warning: ignoring #pragma warning
In file included from SND_WaveCache.cpp:45:
../SND_WaveCache.h:38: warning: ignoring #pragma warning
 -- SND_WaveSlot.cpp --
 -- lib: libSoundSystem.a --
ar: creating /home/TomM/bf/blender/obj/windows/intern/SoundSystem/libSoundSystem.a
ranlib /home/TomM/bf/blender/obj/windows/intern/SoundSystem/libSoundSystem.a
====> make all in intern/SoundSystem/dummy
 -- SND_DummyDevice.cpp --
SND_DummyDevice.cpp:39: warning: ignoring #pragma warning
In file included from ../SND_IAudioDevice.h:37,
                 from ../intern/SND_AudioDevice.h:35,
                 from SND_DummyDevice.h:35,
                 from SND_DummyDevice.cpp:42:
../SND_WaveCache.h:38: warning: ignoring #pragma warning
 -- lib: libDummySoundSystem.a --
ar: creating /home/TomM/bf/blender/obj/windows/intern/DummySoundSystem/libDummySoundSystem.a
ranlib /home/TomM/bf/blender/obj/windows/intern/DummySoundSystem/libDummySoundSystem.a
====> make all in intern/SoundSystem/fmod
 -- SND_FmodDevice.cpp --
SND_FmodDevice.cpp:39: warning: ignoring #pragma warning
In file included from ../SND_IAudioDevice.h:37,
                 from ../intern/SND_AudioDevice.h:35,
                 from SND_FmodDevice.h:36,
                 from SND_FmodDevice.cpp:42:
../SND_WaveCache.h:38: warning: ignoring #pragma warning
SND_FmodDevice.cpp: In constructor `SND_FmodDevice::SND_FmodDevice()':
SND_FmodDevice.cpp:57: warning: unused variable 'MinHardwareChannels'
SND_FmodDevice.cpp:58: warning: unused variable 'MaxHardwareChannels'
SND_FmodDevice.cpp: In member function `virtual SND_WaveSlot*
SND_FmodDevice::LoadSample(const STR_String&, void*, int)':
SND_FmodDevice.cpp:182: warning: passing NULL used for non-pointer
converting 4 of `FSOUND_SAMPLE* FSOUND_Sample_Load(int, const char*,
unsigned int, int)'
SND_FmodDevice.cpp: In member function `virtual void
SND_FmodDevice::SetObjectPitch(int, MT_Scalar) const':
SND_FmodDevice.cpp:345: warning: unused variable 'result'
SND_FmodDevice.cpp: In member function `virtual void
SND_FmodDevice::SetObjectLoop(int, unsigned int) const':
SND_FmodDevice.cpp:368: warning: unused variable 'result'
SND_FmodDevice.cpp:378: warning: unused variable 'result'
SND_FmodDevice.cpp:388: warning: unused variable 'result'
SND_FmodDevice.cpp: In member function `virtual void
SND_FmodDevice::PlayCD(int) const':
SND_FmodDevice.cpp:474: warning: unused variable 'result'
SND_FmodDevice.cpp: In member function `virtual void
SND_FmodDevice::PauseCD(bool) const':
SND_FmodDevice.cpp:489: warning: unused variable 'result'
SND_FmodDevice.cpp: In member function `virtual void
SND_FmodDevice::StopCD() const':
SND_FmodDevice.cpp:510: warning: unused variable 'result'
SND_FmodDevice.cpp: In member function `virtual void
SND_FmodDevice::SetCDGain(MT_Scalar) const':
SND_FmodDevice.cpp:541: warning: converting to `int' from `MT_Scalar'
SND_FmodDevice.cpp:543: warning: unused variable 'result'
 -- lib: libFmodSoundSystem.a --
ar: creating /home/TomM/bf/blender/obj/windows/intern/FmodSoundSystem/libFmodSoundSystem.a
ranlib /home/TomM/bf/blender/obj/windows/intern/FmodSoundSystem/libFmodSoundSystem.a
====> make all in intern/SoundSystem/openal
 -- SND_OpenALDevice.cpp --
SND_OpenALDevice.cpp:35: warning: ignoring #pragma warning
In file included from ../SND_IAudioDevice.h:37,
                 from ../intern/SND_AudioDevice.h:35,
                 from SND_OpenALDevice.h:35,
                 from SND_OpenALDevice.cpp:38:
../SND_WaveCache.h:38: warning: ignoring #pragma warning
 -- pthread_cancel.cpp --
 -- lib: libOpenALSoundSystem.a --
ar: creating /home/TomM/bf/blender/obj/windows/intern/OpenALSoundSystem/libOpenALSoundSystem.a
ranlib /home/TomM/bf/blender/obj/windows/intern/OpenALSoundSystem/libOpenALSoundSystem.a
====> make all in intern/SoundSystem/sdl
 -- SND_SDLCDDevice.cpp --
SND_SDLCDDevice.cpp:39: warning: ignoring #pragma warning
 -- lib: libSDLSoundSystem.a --
ar: creating /home/TomM/bf/blender/obj/windows/intern/SDLSoundSystem/libSDLSoundSystem.a
ranlib /home/TomM/bf/blender/obj/windows/intern/SDLSoundSystem/libSDLSoundSystem.a
====> make debug in intern/SoundSystem/intern
 -- SND_AudioDevice.cpp --
In file included from ../SND_IAudioDevice.h:37,
                 from SND_AudioDevice.h:35,
                 from SND_AudioDevice.cpp:32:
../SND_WaveCache.h:38: warning: ignoring #pragma warning
SND_AudioDevice.cpp:38: warning: ignoring #pragma warning
 -- SND_C-api.cpp --
In file included from ../SND_IAudioDevice.h:37,
                 from ../SND_DeviceManager.h:40,
                 from SND_C-api.cpp:42:
../SND_WaveCache.h:38: warning: ignoring #pragma warning
In file included from SND_C-api.cpp:43:
../SND_Scene.h:38: warning: ignoring #pragma warning
SND_C-api.cpp:46: warning: ignoring #pragma warning
 -- SND_CDObject.cpp --
 -- SND_DeviceManager.cpp --
In file included from ../SND_IAudioDevice.h:37,
                 from ../SND_DeviceManager.h:40,
                 from SND_DeviceManager.cpp:41:
../SND_WaveCache.h:38: warning: ignoring #pragma warning
 -- SND_IdObject.cpp --
 -- SND_Scene.cpp --
SND_Scene.cpp:42: warning: ignoring #pragma warning
In file included from SND_Scene.cpp:45:
../SND_Scene.h:38: warning: ignoring #pragma warning
In file included from ../SND_IAudioDevice.h:37,
                 from SND_Scene.cpp:47:
../SND_WaveCache.h:38: warning: ignoring #pragma warning
 -- SND_SoundListener.cpp --
 -- SND_SoundObject.cpp --
 -- SND_Utils.cpp --
 -- SND_WaveCache.cpp --
SND_WaveCache.cpp:42: warning: ignoring #pragma warning
In file included from SND_WaveCache.cpp:45:
../SND_WaveCache.h:38: warning: ignoring #pragma warning
 -- SND_WaveSlot.cpp --
 -- lib: libSoundSystem.a --
ar: creating /home/TomM/bf/blender/obj/windows/intern/SoundSystem/debug/libSoundSystem.a
ranlib /home/TomM/bf/blender/obj/windows/intern/SoundSystem/debug/libSoundSystem.a
====> make debug in intern/SoundSystem/dummy
 -- SND_DummyDevice.cpp --
SND_DummyDevice.cpp:39: warning: ignoring #pragma warning
In file included from ../SND_IAudioDevice.h:37,
                 from ../intern/SND_AudioDevice.h:35,
                 from SND_DummyDevice.h:35,
                 from SND_DummyDevice.cpp:42:
../SND_WaveCache.h:38: warning: ignoring #pragma warning
 -- lib: libDummySoundSystem.a --
ar: creating /home/TomM/bf/blender/obj/windows/intern/DummySoundSystem/debug/libDummySoundSystem.a
ranlib /home/TomM/bf/blender/obj/windows/intern/DummySoundSystem/debug/libDummySoundSystem.a
====> make debug in intern/SoundSystem/fmod
 -- SND_FmodDevice.cpp --
SND_FmodDevice.cpp:39: warning: ignoring #pragma warning
In file included from ../SND_IAudioDevice.h:37,
                 from ../intern/SND_AudioDevice.h:35,
                 from SND_FmodDevice.h:36,
                 from SND_FmodDevice.cpp:42:
../SND_WaveCache.h:38: warning: ignoring #pragma warning
SND_FmodDevice.cpp: In constructor `SND_FmodDevice::SND_FmodDevice()':
SND_FmodDevice.cpp:57: warning: unused variable 'MinHardwareChannels'
SND_FmodDevice.cpp:58: warning: unused variable 'MaxHardwareChannels'
SND_FmodDevice.cpp: In member function `virtual SND_WaveSlot*
SND_FmodDevice::LoadSample(const STR_String&, void*, int)':
SND_FmodDevice.cpp:182: warning: passing NULL used for non-pointer
converting 4 of `FSOUND_SAMPLE* FSOUND_Sample_Load(int, const char*,
unsigned int, int)'
SND_FmodDevice.cpp: In member function `virtual void
SND_FmodDevice::SetObjectPitch(int, MT_Scalar) const':
SND_FmodDevice.cpp:345: warning: unused variable 'result'
SND_FmodDevice.cpp: In member function `virtual void
SND_FmodDevice::SetObjectLoop(int, unsigned int) const':
SND_FmodDevice.cpp:368: warning: unused variable 'result'
SND_FmodDevice.cpp:378: warning: unused variable 'result'
SND_FmodDevice.cpp:388: warning: unused variable 'result'
SND_FmodDevice.cpp: In member function `virtual void
SND_FmodDevice::PlayCD(int) const':
SND_FmodDevice.cpp:474: warning: unused variable 'result'
SND_FmodDevice.cpp: In member function `virtual void
SND_FmodDevice::PauseCD(bool) const':
SND_FmodDevice.cpp:489: warning: unused variable 'result'
SND_FmodDevice.cpp: In member function `virtual void
SND_FmodDevice::StopCD() const':
SND_FmodDevice.cpp:510: warning: unused variable 'result'
SND_FmodDevice.cpp: In member function `virtual void
SND_FmodDevice::SetCDGain(MT_Scalar) const':
SND_FmodDevice.cpp:541: warning: converting to `int' from `MT_Scalar'
SND_FmodDevice.cpp:543: warning: unused variable 'result'
 -- lib: libFmodSoundSystem.a --
ar: creating /home/TomM/bf/blender/obj/windows/intern/FmodSoundSystem/debug/libFmodSoundSystem.a
ranlib /home/TomM/bf/blender/obj/windows/intern/FmodSoundSystem/debug/libFmodSoundSystem.a
====> make debug in intern/SoundSystem/openal
 -- SND_OpenALDevice.cpp --
SND_OpenALDevice.cpp:35: warning: ignoring #pragma warning
In file included from ../SND_IAudioDevice.h:37,
                 from ../intern/SND_AudioDevice.h:35,
                 from SND_OpenALDevice.h:35,
                 from SND_OpenALDevice.cpp:38:
../SND_WaveCache.h:38: warning: ignoring #pragma warning
 -- pthread_cancel.cpp --
 -- lib: libOpenALSoundSystem.a --
ar: creating /home/TomM/bf/blender/obj/windows/intern/OpenALSoundSystem/debug/libOpenALSoundSystem.a
ranlib /home/TomM/bf/blender/obj/windows/intern/OpenALSoundSystem/debug/libOpenALSoundSystem.a
====> make debug in intern/SoundSystem/sdl
 -- SND_SDLCDDevice.cpp --
SND_SDLCDDevice.cpp:39: warning: ignoring #pragma warning


More information about the Bf-committers mailing list