Axel Bender wrote:
> Compiling gvim (Windows 7, gcc (x86_64-win32-seh-rev0, Built by MinGW-W64 p=
> roject) 4.8.4) the following warning appears in if_ole.cpp:
>
> gcc -Iproto -DWIN32 -DWINVER=3D0x0500 -D_WIN32_WINNT=3D0x0500 -DHAVE_PATHDE=
> F -DFEAT_BIG -DMS_WIN64 -DHAVE_GETTEXT -DHAVE_LOCALE_H -DDYNAMIC_GETTEXT -D=
> FEAT_OLE -DFEAT_CSCOPE -DFEAT_CHANNEL -DFEAT_GUI_W32 -DFEAT_CLIPBOARD -DFEA=
> T_MBYTE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DDYNAMIC_ICONV -pipe -march=3Dx86-6=
> 4 -Wall -DFEAT_PYTHON3 -DDYNAMIC_PYTHON3 -DDYNAMIC_PYTHON3_DLL=3D\"python32=
> .dll\" -DFEAT_XPM_W32 -I xpm/x64/include -I xpm/x64/../include -O3 -fomit-f=
> rame-pointer -freg-struct-return -s -c -o gobjx86-64/if_ole.o if_ole.cpp
>
> if_ole.cpp: In static member function 'static CVim* CVim::Create(int*)':
> if_ole.cpp:163:13: warning: deleting object of polymorphic class type 'CVim=
> ' which has non-virtual destructor might cause undefined behaviour [-Wdelet=
> e-non-virtual-dtor]
> delete me;
> ^
> if_ole.cpp:171:13: warning: deleting object of polymorphic class type 'CVim=
> ' which has non-virtual destructor might cause undefined behaviour [-Wdelet=
> e-non-virtual-dtor]
> delete me;
> ^
> if_ole.cpp:184:13: warning: deleting object of polymorphic class type 'CVim=
> ' which has non-virtual destructor might cause undefined behaviour [-Wdelet=
> e-non-virtual-dtor]
> delete me;
> ^
> if_ole.cpp:197:9: warning: deleting object of polymorphic class type 'CVim'=
> which has non-virtual destructor might cause undefined behaviour [-Wdelete=
> -non-virtual-dtor]
> delete me;
> ^
> if_ole.cpp: In function 'void UninitOLE()':
> if_ole.cpp:795:9: warning: deleting object of polymorphic class type 'CVim'=
> which has non-virtual destructor might cause undefined behaviour [-Wdelete=
> -non-virtual-dtor]
> delete app;
> ^
> if_ole.cpp:802:9: warning: deleting object of polymorphic class type 'CVimC=
> F' which has non-virtual destructor might cause undefined behaviour [-Wdele=
> te-non-virtual-dtor]
> delete cf;
> ^
Does anyone know how to avoid these warnings?
--
GALAHAD: No. Look, I can tackle this lot single-handed!
GIRLS: Yes, yes, let him Tackle us single-handed!
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.