Menu

#11 Const-warnings

closed
nobody
5
2012-10-09
2000-12-27
Anonymous
No

Compiling in MSVC gives the following warnings due
to const (in)correctness. I don't think I'd be able to correct them, but I've listed them just for reference.

obj/msvc/runner.exe cl @ -nologo -DALLEGRO_SRC -DDEBUGMODE=1 -W1 -Gd -Zi
-MTd -I
. -I./include -Foobj/msvc/alld/glyph.obj -c src/glyph.c
glyph.c
src/glyph.c(144) : warning C4090: 'initializing' : different 'const'
qualifiers
src/glyph.c(158) : warning C4090: 'initializing' : different 'const'
qualifiers
src/glyph.c(172) : warning C4090: 'initializing' : different 'const'
qualifiers
src/glyph.c(186) : warning C4090: 'initializing' : different 'const'
qualifiers

obj/msvc/runner.exe cl @ -nologo -DALLEGRO_SRC -DDEBUGMODE=1 -W1 -Gd -Zi
-MTd -I
. -I./include -Foobj/msvc/alld/modesel.obj -c src/modesel.c
modesel.c
src/modesel.c(243) : warning C4090: 'initializing' : different 'const'
qualifiers
src/modesel.c(244) : warning C4090: 'initializing' : different 'const'
qualifiers
src/modesel.c(258) : warning C4090: 'initializing' : different 'const'
qualifiers
src/modesel.c(259) : warning C4090: 'initializing' : different 'const'
qualifiers
src/modesel.c(260) : warning C4090: 'initializing' : different 'const'
qualifiers

obj/msvc/runner.exe cl @ -nologo -DDEBUGMODE=1 -W1 -Gd -Zi -MTd -I.
-I./include
-Foobj/msvc/alld/setup.obj -c setup/setup.c
setup.c
setup/setup.c(1802) : warning C4090: 'initializing' : different 'const'
qualifiers
setup/setup.c(1814) : warning C4090: 'initializing' : different 'const'
qualifiers

obj/msvc/runner.exe cl @ -nologo -DDEBUGMODE=1 -W1 -Gd -Zi -MTd -I.
-I./include
-Foobj/msvc/alld/datgrid.obj -c tools/plugins/datgrid.c
datgrid.c
tools/plugins/datgrid.c(367) : warning C4090: 'initializing' : different
'const' qualifiers
tools/plugins/datgrid.c(369) : warning C4090: 'initializing' : different
'const' qualifiers
tools/plugins/datgrid.c(203) : warning C4700: local variable 'dat' used
without having been initialized

Discussion

  • Anonymous

    Anonymous - 2000-12-28

    I believe that some of these warnings are actually bugs in MSVC. Could somebody who knows how to use MSVC quite well please contact me at lwithers@lwithers.demon.co.uk so that I can try to debug this?

     
  • Eric Botcazou

    Eric Botcazou - 2001-03-13

    Logged In: YES
    user_id=113920

    Some of the warnings are now corrected in the CVS tree, but
    others are MSVC-specific (I don't know if they are really
    bugs though) and aren't meant to be fixed at the time
    being. The MSVC-compiled lib works perfectly in spite of
    them.

     

Log in to post a comment.