diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-06-01 09:23:26 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-06-01 09:23:52 +0200 |
commit | 82dc186a2a0f819fded89a84956bd75a0096e06b (patch) | |
tree | 95df206e6fd949ff693af19a417b7eae11284c88 /compilerplugins | |
parent | be84b4a5f6f68ce30a5d82d73ae392cf27c369ce (diff) |
Avoid "default initialization ... without ... default constructor" error
Change-Id: Ic336b33bd747cd55955231cbe0b5a9d474adf3ab
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/test/redundantcast.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/test/redundantcast.cxx b/compilerplugins/clang/test/redundantcast.cxx index 53df00ae96ed..b6754391e7ca 100644 --- a/compilerplugins/clang/test/redundantcast.cxx +++ b/compilerplugins/clang/test/redundantcast.cxx @@ -40,7 +40,7 @@ int main() { Enum1 e = (Enum1)Enum1::X; // expected-error {{redundant cstyle cast from 'Enum1' to 'Enum1' [loplugin:redundantcast]}} (void)e; - S const s; + S const s{}; const_cast<S &>(s).f1(); const_cast<S &>(s).f2(); // expected-error {{redundant const_cast from 'const S' to 'S', result is implicitly cast to 'const S' [loplugin:redundantcast]}} const_cast<S &>(s).f3(); |