New issue
Advanced search Search tips

Issue 631870 link

Starred by 2 users

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug



Sign in to add a comment

error: unused variable 'g_new_handler_lock' (clang-cl)

Project Member Reported by ukai@chromium.org, Jul 27 2016

Issue description

failing compile base/allocator/allocator_shim.cc with clang-cl on windows.

https://build.chromium.org/p/chromium.fyi/builders/CrWinClangGoma/builds/18232/steps/compile/logs/stdio
FAILED: obj/base/allocator/unified_allocator_shim/allocator_shim.obj 
E:\b\c\cipd\goma/gomacc.exe ../../third_party/llvm-build/Release+Asserts/bin/clang-cl.exe /nologo /showIncludes /FC @obj/base/allocator/unified_allocator_shim/allocator_shim.obj.rsp /c ../../base/allocator/allocator_shim.cc /Foobj/base/allocator/unified_allocator_shim/allocator_shim.obj /Fd"obj/base/allocator/unified_allocator_shim_cc.pdb"
../../base/allocator/allocator_shim.cc(37,18):  error: unused variable 'g_new_handler_lock' [-Werror,-Wunused-variable]
subtle::Atomic32 g_new_handler_lock = 0;
                 ^
1 error generated.

https://chromium.googlesource.com/chromium/src/+/60292df5e4ed2fb3edd2c6efe32d6944ab059696
?
 

Comment 1 by tikuta@chromium.org, Jul 27 2016

I thought that this is not issue related goma.

There is same error on CrWinClang.
https://uberchromegw.corp.google.com/i/chromium.fyi/builders/CrWinClang/builds/11137

This patch breaks build?
https://codereview.chromium.org/2176113005/
Components: Build

Sign in to add a comment