*: Fix all V641 errors

This commit is contained in:
ZyX
2017-05-20 03:25:22 +03:00
parent 2411b6f137
commit df67785886
7 changed files with 44 additions and 17 deletions

View File

@@ -171,4 +171,16 @@
# define FALLTHROUGH
#endif
// -V:STRUCT_CAST:641
/// Change type of structure pointers: cast `struct a *` to `struct b *`
///
/// Used to silence PVS errors.
///
/// @param Type Structure to cast to.
/// @param obj Object to cast.
///
/// @return ((Type *)obj).
#define STRUCT_CAST(Type, obj) ((Type *)(obj))
#endif // NVIM_MACROS_H