diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-04-14 14:27:59 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-04-19 20:09:35 -0700 |
commit | 147c3e9c891c12dbfd39b65ee0f5baddf5f81b14 (patch) | |
tree | 8b8f6c86691e13c522e1e9237f7587a5a147cd52 /src/strings/astring.hpp | |
parent | 7f16d356995d4e9c29105f98d502a7e51a4c775d (diff) | |
download | tmwa-147c3e9c891c12dbfd39b65ee0f5baddf5f81b14.tar.gz tmwa-147c3e9c891c12dbfd39b65ee0f5baddf5f81b14.tar.bz2 tmwa-147c3e9c891c12dbfd39b65ee0f5baddf5f81b14.tar.xz tmwa-147c3e9c891c12dbfd39b65ee0f5baddf5f81b14.zip |
Make clang and libc++ happy
Diffstat (limited to 'src/strings/astring.hpp')
-rw-r--r-- | src/strings/astring.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/strings/astring.hpp b/src/strings/astring.hpp index b0fb196..7a569f9 100644 --- a/src/strings/astring.hpp +++ b/src/strings/astring.hpp @@ -33,6 +33,9 @@ namespace strings /// The storage is NUL-terminated class AString : public _crtp_string<AString, AString, ZPair> { +# ifdef __clang__ + __attribute__((unused)) +# endif RString *align[0]; char data[255]; unsigned char special; @@ -83,6 +86,9 @@ namespace strings char *mid; public: AStringConverter(AString& s); + // this usually gets elided, but multi dtor calls are fine anyway + AStringConverter(const AStringConverter&) = default; + AStringConverter& operator = (const AStringConverter&) = delete; ~AStringConverter(); char **operator &(); }; |