summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-12-13 17:10:20 +0100
committerBardur Arantsson <bardur@scientician.net>2015-12-28 16:04:45 +0100
commit0e956b1e68bb62a950b0502ec5cba263c4ce1400 (patch)
treed5d7b723632cc7360e807715a0cceadedb881e84 /src
parentaf1b22bc057519500c58e4e87b60fefdec6f8d35 (diff)
Add missing static_assert
Diffstat (limited to 'src')
-rw-r--r--src/files.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/files.cc b/src/files.cc
index f91b51a8..e0990984 100644
--- a/src/files.cc
+++ b/src/files.cc
@@ -5157,6 +5157,8 @@ static errr top_twenty(void)
/* Clear the record */
+ static_assert(std::is_pod<high_score>::value,
+ "Cannot memset a non-POD type");
memset(&the_score, 0, sizeof(high_score));
/* Save the version */