mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
fish/tilde.c: Suppress more bogus -fanalyser warnings.
This commit is contained in:
@@ -39,6 +39,8 @@ static char *expand_home (char *orig, const char *append);
|
||||
static const char *find_home_for_username (const char *, size_t);
|
||||
static const char *find_home_for_current_user (void);
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wanalyzer-null-argument"
|
||||
/**
|
||||
* This is called from the script loop if we find a candidate for
|
||||
* C<~username> (tilde-expansion).
|
||||
@@ -78,7 +80,10 @@ try_tilde_expansion (char *str)
|
||||
/* No match, return the original string. */
|
||||
return str;
|
||||
}
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wanalyzer-null-argument"
|
||||
/**
|
||||
* Return C<$HOME> + append string.
|
||||
*/
|
||||
@@ -110,6 +115,7 @@ expand_home (char *orig, const char *append)
|
||||
|
||||
return str;
|
||||
}
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
/**
|
||||
* Lookup C<username> (of length C<ulen>), return home directory if
|
||||
|
||||
Reference in New Issue
Block a user