PVS/V1032: pointer cast to a more strictly aligned type

This commit is contained in:
Justin M. Keyes
2019-01-16 00:10:41 +01:00
parent ed171f7be2
commit ea7491586f
4 changed files with 10 additions and 9 deletions

View File

@@ -1072,17 +1072,18 @@ EXTERN char_u e_cmdmap_key[] INIT(=N_(
EXTERN char top_bot_msg[] INIT(= N_("search hit TOP, continuing at BOTTOM"));
EXTERN char bot_top_msg[] INIT(= N_("search hit BOTTOM, continuing at TOP"));
/* For undo we need to know the lowest time possible. */
// For undo we need to know the lowest time possible.
EXTERN time_t starttime;
EXTERN FILE *time_fd INIT(= NULL); /* where to write startup timing */
/*
* Some compilers warn for not using a return value, but in some situations we
* can't do anything useful with the value. Assign to this variable to avoid
* the warning.
*/
// Some compilers warn for not using a return value, but in some situations we
// can't do anything useful with the value. Assign to this variable to avoid
// the warning.
EXTERN int vim_ignored;
// Use this to avoid PVS warning V1032 for code like this:
// *foo = (char_u **)"";
EXTERN char_u *vim_emptystr INIT(= (char_u *)"");
// Start a msgpack-rpc channel over stdin/stdout.
EXTERN bool embedded_mode INIT(= false);