therealglazou / bluegriffon

BlueGriffon, the Web editor
Mozilla Public License 2.0
294 stars 71 forks source link

Clang compiler error with 3.1 #63

Open itchka opened 6 years ago

itchka commented 6 years ago

I get the following errors when trying to build Bluegriffon-3.1 on OpenMandriva Lx3 with clang. The build succeeds id gcc/g++ is used.

In file included from /home/colin/Development/bluegriffon/BUILD/gecko-dev-042b84a/opt/editor/libeditor/Unified_cpp_editor_libeditor2.cpp:65: /home/colin/Development/bluegriffon/BUILD/gecko-dev-042b84a/editor/libeditor/TextEditorDataTransfer.cpp:443:3: error: Unused "kungFuDeathGrip" 'nsCOMPtr' objects constructed from temporary values are prohibited nsCOMPtr docShell = do_QueryInterface(root);

In file included from /home/colin/Development/bluegriffon/BUILD/gecko-dev-042b84a/opt/editor/libeditor/Unified_cpp_editor_libeditor1.cpp:47: /home/colin/Development/bluegriffon/BUILD/gecko-dev-042b84a/editor/libeditor/HTMLEditorEventListener.cpp:253:3: error: Unused "kungFuDeathGrip" 'nsCOMPtr' objects constructed from temporary values are prohibited nsCOMPtr targetNode = do_QueryInterface(target);