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)

defect
Not set
normal

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     ^
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
Keywords: leave-open
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
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
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
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

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)

I think we fixed every items

Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(bpostelnicu)
Resolution: --- → FIXED
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: