Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

protect gcc syntax from clang #31462

Merged
merged 2 commits into from Sep 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions CondFormats/Serialization/interface/Test.h
Expand Up @@ -11,7 +11,10 @@

// The compiler knows our default-constructed objects' members
// may not be initialized when we serialize them.

#if !defined(__clang__)
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif

// The main test: constructs an object using the default constructor,
// serializes it, deserializes it and finally checks whether they are equal.
Expand Down