summaryrefslogtreecommitdiff
path: root/src/strings/astring.hpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-04-14 14:27:59 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-04-19 20:09:35 -0700
commit147c3e9c891c12dbfd39b65ee0f5baddf5f81b14 (patch)
tree8b8f6c86691e13c522e1e9237f7587a5a147cd52 /src/strings/astring.hpp
parent7f16d356995d4e9c29105f98d502a7e51a4c775d (diff)
downloadtmwa-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.hpp6
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 &();
};