Disabling the warnings

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Disabling the warnings

Postby Abagian » Tue Feb 14, 2017 7:26 am

Hi,

Automated build with the following parameters was unsuccessfull because of a warning treated as error in ctocpp_scoped.h, line 150.

set GYP_DEFINES=proprietary_codecs=1 ffmpeg_branding=Chrome
set GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome
python D:/CEF-automated/automate-git.py --download-dir=D:/cef-automated/cef-chr57 --branch=2987 --build-log-file --no-update --no-debug-build --force-build

Please help me to find a way to cancel all such treatment or to suppress all the warnings for automated builds.
I know how to to it an a source files and slns but not in a such kind of build.

BTW the initial build without GN_DEFINES and extra python params was succeed :
python D:/CEF-automated/automate-git.py --download-dir=D:/cef-automated/cef-branch --branch=2987

The build itself is a very long thing, and my experiments took too much time.
Abagian
Techie
 
Posts: 15
Joined: Wed Feb 08, 2017 1:55 pm

Re: Disabling the warnings

Postby magreenblatt » Tue Feb 14, 2017 10:36 am

What OS? What exactly is the error message?
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Disabling the warnings

Postby Abagian » Tue Feb 14, 2017 12:44 pm

Windows 7.

The warning itself was about unused variable at line 151 (ctocpp_scoped.h).
- it's about "cef_base_scoped_t* base = reinterpret_cast<cef_base_scoped_t*>(orig_struct);"


[372/27336] CXX obj/cef/libcef_dll_wrapper/translator_test_scoped_library_child_ctocpp.obj
FAILED: obj/cef/libcef_dll_wrapper/translator_test_scoped_library_child_ctocpp.obj
ninja -t msvc -e environment.x86 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64_x86/cl.exe" /nologo /showIncludes /FC @obj/cef/libcef_dll_wrapper/translator_test_scoped_library_child_ctocpp.obj.rsp /c ../../cef/libcef_dll/ctocpp/test/translator_test_scoped_library_child_ctocpp.cc /Foobj/cef/libcef_dll_wrapper/translator_test_scoped_library_child_ctocpp.obj /Fd"obj/cef/libcef_dll_wrapper_cc.pdb"
d:\cef-automated\cef-chr57\chromium\src\cef\libcef_dll\ctocpp\ctocpp_scoped.h(151): error C2220: warning treated as error - no 'object' file generated
d:\cef-automated\cef-chr57\chromium\src\cef\libcef_dll\ctocpp\ctocpp_scoped.h(151): warning C4189: 'base': local variable is initialized but not referenced
d:\cef-automated\cef-chr57\chromium\src\cef\libcef_dll\ctocpp\ctocpp_scoped.h(137): note: while compiling class template member function 'cef_translator_test_scoped_library_child_child_t *CefCToCppScoped<CefTranslatorTestScopedLibraryChildChildCToCpp,CefTranslatorTestScopedLibraryChildChild,cef_translator_test_scoped_library_child_child_t>::UnwrapOwn(scoped_ptr<CefTranslatorTestScopedLibraryChildChild,base::DefaultDeleter<T>>)'
with
[
T=CefTranslatorTestScopedLibraryChildChild
]
d:\cef-automated\cef-chr57\chromium\src\cef\libcef_dll\ctocpp\test\translator_test_scoped_library_child_ctocpp.cc(102): note: see reference to function template instantiation 'cef_translator_test_scoped_library_child_child_t *CefCToCppScoped<CefTranslatorTestScopedLibraryChildChildCToCpp,CefTranslatorTestScopedLibraryChildChild,cef_translator_test_scoped_library_child_child_t>::UnwrapOwn(scoped_ptr<CefTranslatorTestScopedLibraryChildChild,base::DefaultDeleter<T>>)' being compiled
with
[
T=CefTranslatorTestScopedLibraryChildChild
]
d:\cef-automated\cef-chr57\chromium\src\cef\libcef_dll\ctocpp\test\translator_test_scoped_library_child_child_ctocpp.h(30): note: see reference to class template instantiation 'CefCToCppScoped<CefTranslatorTestScopedLibraryChildChildCToCpp,CefTranslatorTestScopedLibraryChildChild,cef_translator_test_scoped_library_child_child_t>' being compiled
Abagian
Techie
 
Posts: 15
Joined: Wed Feb 08, 2017 1:55 pm

Re: Disabling the warnings

Postby magreenblatt » Tue Feb 14, 2017 2:39 pm

Fixed in master revision 43001c0 and 2987 branch revision fb14c2b.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 58 guests