Closed Bug 2052079 Opened 4 months ago Closed 2 months ago

Bp-clang-trunk /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:X:13: error: variable 'gIsBackgroundTask' set but not used [-Werror,-Wunused-but-set-global]

Categories

(Firefox Build System :: Toolchains, defect, P5)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 2060535

People

(Reporter: intermittent-bug-filer, Unassigned)

Details

(Keywords: intermittent-failure)

Filed by: abutkovits [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=576291810&repo=mozilla-central&task=GkfMp2OJS7u8KREKn6OkjA.0
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/GkfMp2OJS7u8KREKn6OkjA/runs/0/artifacts/public/logs/live_backing.log


[task 2026-07-01T23:47:23.101+00:00] 23:47:23     INFO -  third_party/llama.cpp/ggml-c.o
[task 2026-07-01T23:47:23.101+00:00] 23:47:23     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/third_party/llama.cpp'
[task 2026-07-01T23:47:23.280+00:00] 23:47:23     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/security/nss/lib/ssl/ssl_ssl'
[task 2026-07-01T23:47:23.284+00:00] 23:47:23     INFO -  /builds/worker/fetches/clang/bin/clang --sysroot /builds/worker/fetches/sysroot-x86_64-linux-gnu -o sslsnce.o -c  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fstack-clash-protection -fstrict-flex-arrays=1 -DNDEBUG -DTRIMMED=1 -DNSS_FIPS_DISABLED -DNSS_NO_INIT_SUPPORT -DNSS_X86_OR_X64 -DNSS_X64 -DNSS_USE_64 -DNSS_ALLOW_SSLKEYLOGFILE -DUSE_UTIL_DIRECTLY -DNO_NSPR_10_SUPPORT -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES -DLINUX2_1 -DLINUX -Dlinux -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -DSDB_MEASURE_USE_TEMP_DIR -DHAVE_STRERROR -DXP_UNIX -D_REENTRANT -DNSS_DISABLE_DBM -DNSS_DISABLE_LIBPKIX -DNSS_USE_PKCS5_PBKD2_PARAMS2_ONLY -DSOFTOKEN_USE_PKCS5_PBKD2_PARAMS2_ONLY -I/builds/worker/checkouts/gecko/security/nss/lib/ssl -I/builds/worker/workspace/obj-build/security/nss/lib/ssl/ssl_ssl -I/builds/worker/workspace/obj-build/dist/include/nspr -I/builds/worker/workspace/obj-build/dist/include/private/nss -I/builds/worker/workspace/obj-build/dist/include/nss -I/builds/worker/workspace/obj-build/dist/include -DMOZILLA_CLIENT -include /builds/worker/workspace/obj-build/mozilla-config.h -pthread -ffunction-sections -fdata-sections -fno-math-errno -fdiagnostics-absolute-paths -fPIC -gdwarf-4 -gsimple-template-names --start-no-unused-arguments -mllvm=-dwarf-linkage-names=Abstract --end-no-unused-arguments -Xclang -load -Xclang /builds/worker/workspace/obj-build/build/clang-plugin/libclang-plugin.so -Xclang -add-plugin -Xclang moz-check -O2 -fno-omit-frame-pointer -funwind-tables -Werror -Wall -Wbitfield-enum-conversion -Wempty-body -Wformat-type-confusion -Wignored-qualifiers -Wpointer-arith -Wshadow-field-in-constructor-modified -Wtautological-constant-in-range-compare -Wtype-limits -Wno-error=tautological-type-limit-compare -Wunreachable-code -Wunreachable-code-return -Wunused-but-set-parameter -Wclass-varargs -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wloop-analysis -Wno-range-loop-analysis -Winvalid-utf8 -Wstring-conversion -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wno-error=atomic-alignment -Wno-error=deprecated-builtins -Wformat -Wformat-security -Werror=implicit-function-declaration -Wno-psabi -Wthread-safety -Wno-error=builtin-macro-redefined -Wno-unknown-warning-option -Wno-character-conversion -fno-strict-aliasing -ffp-contract=off  -MD -MP -MF .deps/sslsnce.o.pp   /builds/worker/checkouts/gecko/security/nss/lib/ssl/sslsnce.c
[task 2026-07-01T23:47:23.285+00:00] 23:47:23     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/security/nss/lib/ssl/ssl_ssl'
[task 2026-07-01T23:47:23.287+00:00] 23:47:23     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/security/nss/lib/ssl/ssl_ssl'
[task 2026-07-01T23:47:23.288+00:00] 23:47:23     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/security/nss/lib/ssl/ssl_ssl'
[task 2026-07-01T23:47:23.289+00:00] 23:47:23     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/security/nss/lib/ssl/ssl_ssl'
[task 2026-07-01T23:47:23.292+00:00] 23:47:23     INFO -  security/nss/lib/ssl/sslsock.o
[task 2026-07-01T23:47:23.292+00:00] 23:47:23     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/security/nss/lib/ssl/ssl_ssl'
[task 2026-07-01T23:47:23.306+00:00] 23:47:23     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/browser/app'
[task 2026-07-01T23:47:23.312+00:00] 23:47:23     INFO -  /builds/worker/fetches/clang/bin/clang++ --sysroot /builds/worker/fetches/sysroot-x86_64-linux-gnu -std=gnu++20 -o nsBrowserApp.o -c  -I/builds/worker/workspace/obj-build/dist/system_wrappers -include /builds/worker/checkouts/gecko/config/gcc_hidden.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fstack-clash-protection -fstrict-flex-arrays=1 -DNDEBUG=1 -DTRIMMED=1 -DXPCOM_GLUE -DMOZ_HAS_MOZGLUE '-DFIREFOX_ICO="/builds/worker/checkouts/gecko/browser/branding/unofficial/firefox.ico"' '-DDOCUMENT_ICO="/builds/worker/checkouts/gecko/browser/branding/unofficial/document.ico"' '-DNEWWINDOW_ICO="/builds/worker/checkouts/gecko/browser/branding/unofficial/newwindow.ico"' '-DNEWTAB_ICO="/builds/worker/checkouts/gecko/browser/branding/unofficial/newtab.ico"' '-DPBMODE_ICO="/builds/worker/checkouts/gecko/browser/branding/unofficial/pbmode.ico"' '-DDOCUMENT_PDF_ICO="/builds/worker/checkouts/gecko/browser/branding/unofficial/document_pdf.ico"' '-DCUSTOM_RETRO_ICO="/builds/worker/checkouts/gecko/browser/components/shell/icons/retro.ico"' -I/builds/worker/checkouts/gecko/browser/app -I/builds/worker/workspace/obj-build/browser/app -I/builds/worker/workspace/obj-build/build -I/builds/worker/checkouts/gecko/toolkit/xre -I/builds/worker/checkouts/gecko/xpcom/base -I/builds/worker/checkouts/gecko/xpcom/build -I/builds/worker/workspace/obj-build/dist/include -I/builds/worker/workspace/obj-build/dist/include/nspr -I/builds/worker/workspace/obj-build/dist/include/nss -DMOZILLA_CLIENT -include /builds/worker/workspace/obj-build/mozilla-config.h -D_GLIBCXX_USE_CXX11_ABI=0 -fno-rtti -pthread -fno-sized-deallocation -fno-aligned-new -ffunction-sections -fdata-sections -fno-math-errno -fno-exceptions -fdiagnostics-absolute-paths -fPIC -gdwarf-4 -gsimple-template-names --start-no-unused-arguments -mllvm=-dwarf-linkage-names=Abstract --end-no-unused-arguments -Xclang -load -Xclang /builds/worker/workspace/obj-build/build/clang-plugin/libclang-plugin.so -Xclang -add-plugin -Xclang moz-check -O2 -fno-omit-frame-pointer -funwind-tables -Werror -Wall -Wbitfield-enum-conversion -Wempty-body -Wformat-type-confusion -Wignored-qualifiers -Wpointer-arith -Wshadow-field-in-constructor-modified -Wsign-compare -Wtautological-constant-in-range-compare -Wtype-limits -Wno-error=tautological-type-limit-compare -Wunreachable-code -Wunreachable-code-return -Wunused-but-set-parameter -Wno-invalid-offsetof -Wclass-varargs -Wempty-init-stmt -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wloop-analysis -Wno-range-loop-analysis -Wno-deprecated-anon-enum-enum-conversion -Wno-deprecated-enum-enum-conversion -Wdeprecated-literal-operator -Winvalid-utf8 -Wcomma -Wimplicit-fallthrough -Wstring-conversion -Wno-inline-new-delete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wno-error=atomic-alignment -Wno-error=deprecated-builtins -Wformat -Wformat-security -Wno-psabi -Wthread-safety -Wno-error=builtin-macro-redefined -Wno-vla-cxx-extension -Wno-unknown-warning-option -Wno-character-conversion -fno-strict-aliasing -ffp-contract=off  -MD -MP -MF .deps/nsBrowserApp.o.pp   /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp
[task 2026-07-01T23:47:23.313+00:00] 23:47:23    ERROR -  /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:108:13: error: variable 'gIsBackgroundTask' set but not used [-Werror,-Wunused-but-set-global]
[task 2026-07-01T23:47:23.313+00:00] 23:47:23     INFO -    108 | static bool gIsBackgroundTask = false;
[task 2026-07-01T23:47:23.313+00:00] 23:47:23     INFO -        |             ^
[task 2026-07-01T23:47:23.314+00:00] 23:47:23     INFO -  1 error generated.
[task 2026-07-01T23:47:23.314+00:00] 23:47:23    ERROR -  gmake[4]: *** [/builds/worker/checkouts/gecko/config/rules.mk:668: nsBrowserApp.o] Error 1
[task 2026-07-01T23:47:23.315+00:00] 23:47:23     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/browser/app'
[task 2026-07-01T23:47:23.315+00:00] 23:47:23     INFO -  gmake[4]: Target 'target-objects' not remade because of errors.
[task 2026-07-01T23:47:23.315+00:00] 23:47:23    ERROR -  gmake[3]: *** [/builds/worker/checkouts/gecko/config/recurse.mk:79: browser/app/target-objects] Error 2
[task 2026-07-01T23:47:23.315+00:00] 23:47:23     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/dom/media/fake-cdm'
[task 2026-07-01T23:47:23.315+00:00] 23:47:23     INFO -  dom/media/fake-cdm/cdm-test-decryptor.o
[task 2026-07-01T23:47:23.315+00:00] 23:47:23     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/dom/media/fake-cdm'
[task 2026-07-01T23:47:23.333+00:00] 23:47:23     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/mfbt'
[task 2026-07-01T23:47:23.338+00:00] 23:47:23     INFO -  /builds/worker/fetches/clang/bin/clang++ --sysroot /builds/worker/fetches/sysroot-x86_64-linux-gnu -std=gnu++20 -o Unified_cpp_mfbt0.o -c  -I/builds/worker/workspace/obj-build/dist/system_wrappers -include /builds/worker/checkouts/gecko/config/gcc_hidden.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fstack-clash-protection -fstrict-flex-arrays=1 -DNDEBUG=1 -DTRIMMED=1 -DIMPL_MFBT -DMOZ_SUPPORT_LEAKCHECKING -DIMPL_MFBT -DMOZ_HAS_MOZGLUE -I/builds/worker/checkouts/gecko/mfbt -I/builds/worker/workspace/obj-build/mfbt -I/builds/worker/checkouts/gecko/mfbt/double-conversion -I/builds/worker/workspace/obj-build/dist/include -I/builds/worker/workspace/obj-build/dist/include/nspr -I/builds/worker/workspace/obj-build/dist/include/nss -DMOZILLA_CLIENT -include /builds/worker/workspace/obj-build/mozilla-config.h -D_GLIBCXX_USE_CXX11_ABI=0 -fno-rtti -pthread -fno-sized-deallocation -fno-aligned-new -ffunction-sections -fdata-sections -fno-math-errno -fno-exceptions -fdiagnostics-absolute-paths -fPIC -gdwarf-4 -gsimple-template-names --start-no-unused-arguments -mllvm=-dwarf-linkage-names=Abstract --end-no-unused-arguments -Xclang -load -Xclang /builds/worker/workspace/obj-build/build/clang-plugin/libclang-plugin.so -Xclang -add-plugin -Xclang moz-check -O2 -fno-omit-frame-pointer -funwind-tables -Werror -Wall -Wbitfield-enum-conversion -Wempty-body -Wformat-type-confusion -Wignored-qualifiers -Wpointer-arith -Wshadow-field-in-constructor-modified -Wsign-compare -Wtautological-constant-in-range-compare -Wtype-limits -Wno-error=tautological-type-limit-compare -Wunreachable-code -Wunreachable-code-return -Wunused-but-set-parameter -Wno-invalid-offsetof -Wclass-varargs -Wempty-init-stmt -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wloop-analysis -Wno-range-loop-analysis -Wno-deprecated-anon-enum-enum-conversion -Wno-deprecated-enum-enum-conversion -Wdeprecated-literal-operator -Winvalid-utf8 -Wcomma -Wimplicit-fallthrough -Wstring-conversion -Wno-inline-new-delete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wno-error=atomic-alignment -Wno-error=deprecated-builtins -Wformat -Wformat-security -Wno-psabi -Wthread-safety -Wno-error=builtin-macro-redefined -Wno-vla-cxx-extension -Wno-unknown-warning-option -Wno-character-conversion -fno-strict-aliasing -ffp-contract=off  -MD -MP -MF .deps/Unified_cpp_mfbt0.o.pp   Unified_cpp_mfbt0.cpp
[task 2026-07-01T23:47:23.339+00:00] 23:47:23     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/mfbt'
[task 2026-07-01T23:47:23.339+00:00] 23:47:23     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/mfbt'
[task 2026-07-01T23:47:23.339+00:00] 23:47:23     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/mfbt'
[task 2026-07-01T23:47:23.339+00:00] 23:47:23     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/xpcom/glue/standalone'
[task 2026-07-01T23:47:23.339+00:00] 23:47:23     INFO -  xpcom/glue/standalone/nsXPCOMGlue.o
[task 2026-07-01T23:47:23.339+00:00] 23:47:23     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/xpcom/glue/standalone'
[task 2026-07-01T23:47:23.630+00:00] 23:47:23     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/dom/media/fake-cdm'
[task 2026-07-01T23:47:23.630+00:00] 23:47:23     INFO -  /builds/worker/fetches/clang/bin/clang++ --sysroot /builds/worker/fetches/sysroot-x86_64-linux-gnu -std=gnu++20 -o cdm-fake.o -c  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fstack-clash-protection -fstrict-flex-arrays=1 -DNDEBUG=1 -DTRIMMED=1 -DCDM_IMPLEMENTATION -I/builds/worker/checkouts/gecko/dom/media/fake-cdm -I/builds/worker/workspace/obj-build/dom/media/fake-cdm -I/builds/worker/workspace/obj-build/dist/include -I/builds/worker/workspace/obj-build/dist/include/nspr -I/builds/worker/workspace/obj-build/dist/include/nss -DMOZILLA_CLIENT -include /builds/worker/workspace/obj-build/mozilla-config.h -D_GLIBCXX_USE_CXX11_ABI=0 -fno-rtti -pthread -fno-sized-deallocation -fno-aligned-new -ffunction-sections -fdata-sections -fno-math-errno -fno-exceptions -fdiagnostics-absolute-paths -fPIC -gdwarf-4 -gsimple-template-names --start-no-unused-arguments -mllvm=-dwarf-linkage-names=Abstract --end-no-unused-arguments -Xclang -load -Xclang /builds/worker/workspace/obj-build/build/clang-plugin/libclang-plugin.so -Xclang -add-plugin -Xclang moz-check -O2 -fno-omit-frame-pointer -funwind-tables -Werror -Wall -Wbitfield-enum-conversion -Wempty-body -Wformat-type-confusion -Wignored-qualifiers -Wpointer-arith -Wshadow-field-in-constructor-modified -Wsign-compare -Wtautological-constant-in-range-compare -Wtype-limits -Wno-error=tautological-type-limit-compare -Wunreachable-code -Wunreachable-code-return -Wunused-but-set-parameter -Wno-invalid-offsetof -Wclass-varargs -Wempty-init-stmt -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wloop-analysis -Wno-range-loop-analysis -Wno-deprecated-anon-enum-enum-conversion -Wno-deprecated-enum-enum-conversion -Wdeprecated-literal-operator -Winvalid-utf8 -Wcomma -Wimplicit-fallthrough -Wstring-conversion -Wno-inline-new-delete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wno-error=atomic-alignment -Wno-error=deprecated-builtins -Wformat -Wformat-security -Wno-psabi -Wthread-safety -Wno-error=builtin-macro-redefined -Wno-vla-cxx-extension -Wno-unknown-warning-option -Wno-character-conversion -fno-strict-aliasing -ffp-contract=off  -MD -MP -MF .deps/cdm-fake.o.pp   /builds/worker/checkouts/gecko/dom/media/fake-cdm/cdm-fake.cpp
[task 2026-07-01T23:47:23.630+00:00] 23:47:23     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/dom/media/fake-cdm'
[task 2026-07-01T23:47:23.630+00:00] 23:47:23     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/dom/media/fake-cdm'
[task 2026-07-01T23:47:23.630+00:00] 23:47:23     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/dom/media/fake-cdm'
[task 2026-07-01T23:47:23.630+00:00] 23:47:23     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/dom/bindings/test'
[task 2026-07-01T23:47:23.630+00:00] 23:47:23     INFO -  dom/bindings/test/TestCodeGenBinding.o
Flags: needinfo?(mh+mozilla)
See Also: → 2052420

The Bugbug bot thinks this bug should belong to the 'Firefox Build System::Toolchains' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → Toolchains
Blocks: clang-23
Flags: needinfo?(mh+mozilla)
No longer blocks: clang-23
Status: NEW → RESOLVED
Closed: 2 months ago
Duplicate of bug: 2060535
Resolution: --- → DUPLICATE
See Also: 2052420 →
You need to log in before you can comment on or make changes to this bug.