diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-12-13 17:10:20 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-12-28 16:04:45 +0100 |
commit | 0e956b1e68bb62a950b0502ec5cba263c4ce1400 (patch) | |
tree | d5d7b723632cc7360e807715a0cceadedb881e84 | |
parent | af1b22bc057519500c58e4e87b60fefdec6f8d35 (diff) |
Add missing static_assert
-rw-r--r-- | src/files.cc | 2 |
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 */ |