Closed
Bug 1617437
Opened 5 years ago
Closed 5 years ago
Fails to build with [-Werror,-Wnon-c-typedef-for-linkage]
Categories
(Developer Infrastructure :: Source Code Analysis, defect)
Developer Infrastructure
Source Code Analysis
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Sylvestre, Assigned: Sylvestre)
References
(Blocks 1 open bug)
Details
Attachments
(5 files)
Introduced in clang-11 (trunk currently)
https://reviews.llvm.org/D74103
In file included from /var/lib/jenkins/workspace/firefox-clang-lld-last/js/src/gc/StoreBuffer.cpp:7:
In file included from /var/lib/jenkins/workspace/firefox-clang-lld-last/js/src/gc/StoreBuffer-inl.h:10:
/var/lib/jenkins/workspace/firefox-clang-lld-last/js/src/gc/StoreBuffer.h:372:19: error: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Werror,-Wnon-c-typedef-for-linkage]
typedef struct {
^
Hasher
/var/lib/jenkins/workspace/firefox-clang-lld-last/js/src/gc/StoreBuffer.h:373:7: note: type is not C-compatible due to this member declaration
typedef SlotsEdge Lookup;
^~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/jenkins/workspace/firefox-clang-lld-last/js/src/gc/StoreBuffer.h:378:7: note: type is given name 'Hasher' for linkage purposes by this typedef declaration
} Hasher;
^
4:13.01 In file included from /var/lib/jenkins/workspace/firefox-clang-lld-last/xpcom/tests/gtest/TestTaskQueue.cpp:9:
4:13.01 /var/lib/jenkins/workspace/firefox-clang-lld-last/obj-x86_64-pc-linux-gnu/dist/include/mozilla/TaskQueue.h:131:17: error: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Werror,-Wnon-c-typedef-for-linkage]
4:13.01 typedef struct {
4:13.01 ^
4:13.01 TaskStruct
4:13.01 /var/lib/jenkins/workspace/firefox-clang-lld-last/obj-x86_64-pc-linux-gnu/dist/include/mozilla/TaskQueue.h:131:11: note: type is not C-compatible due to this member declaration
4:13.01 typedef struct {
4:13.01 ^~~~~~
4:13.01 /var/lib/jenkins/workspace/firefox-clang-lld-last/obj-x86_64-pc-linux-gnu/dist/include/mozilla/TaskQueue.h:134:5: note: type is given name 'TaskStruct' for linkage purposes by this typedef declaration
4:13.01 } TaskStruct;
4:13.01 ^
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
Depends on D63781
Assignee | ||
Comment 3•5 years ago
|
||
Depends on D63783
Assignee | ||
Comment 4•5 years ago
|
||
Depends on D63784
Assignee | ||
Comment 5•5 years ago
|
||
Depends on D63785
Assignee | ||
Updated•5 years ago
|
Summary: StoreBuffer.h: fails to build with [-Werror,-Wnon-c-typedef-for-linkage] → Fails to build with [-Werror,-Wnon-c-typedef-for-linkage]
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b4e30e9317ad
gfxFontUtils.cpp: Fix two -Wnon-c-typedef-for-linkage warnings r=jfkthame
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f5d2d89c4f92
TaskQueue.h: Fix a -Wnon-c-typedef-for-linkage warning r=froydnj
Assignee | ||
Updated•5 years ago
|
Keywords: leave-open
Comment 8•5 years ago
|
||
bugherder |
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e9002e61db7d
StoreBuffer.h: Fix a -Wnon-c-typedef-for-linkage warning r=jandem
Comment 10•5 years ago
|
||
bugherder |
Comment 11•5 years ago
|
||
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f7ff41aba0ec
ssltunnel.cpp: Fix some -Wnon-c-typedef-for-linkage warnings r=keeler
Comment 12•5 years ago
|
||
bugherder |
Comment 13•5 years ago
|
||
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/31b56def2a8d
OggCodecState.h/DynamicsCompressor.h: Fix two -Wnon-c-typedef-for-linkage warnings r=jya
Comment 14•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Attachment #9128367 -
Attachment description: Bug 1617437 - OggCodecState.h/DynamicsCompressor.h: Fix two -Wnon-c-typedef-for-linkage warnings r?jya → Bug 1617437 - OggCodecState.h/DynamicsCompressor.h: Fix two -Wnon-c-typedef-for-linkage warnings r=jya
Comment 15•5 years ago
|
||
The priority flag is not set for this bug.
:andi, could you have a look please?
For more information, please visit auto_nag documentation.
Flags: needinfo?(bpostelnicu)
Assignee | ||
Comment 16•5 years ago
|
||
I think we fixed every items
Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(bpostelnicu)
Resolution: --- → FIXED
Updated•5 years ago
|
Keywords: leave-open
Updated•3 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•