Re: [PATCH 68/75] virpcimock: Make @fakerootdir static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 10/22/19 10:58 AM, Michal Privoznik wrote:
Since we are not passing the @fakerootdir variable to any inline function
anymore, we can make the variable static.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---

Reviewed-by: Daniel Henrique Barboza <danielhb413@xxxxxxxxx>


  tests/virpcimock.c | 6 +-----
  1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/tests/virpcimock.c b/tests/virpcimock.c
index 0d502db68c..7e4554a1dc 100644
--- a/tests/virpcimock.c
+++ b/tests/virpcimock.c
@@ -39,11 +39,7 @@ static int (*real_close)(int fd);
  static DIR * (*real_opendir)(const char *name);
  static char *(*real_virFileCanonicalizePath)(const char *path);
-/* Don't make static, since it causes problems with clang
- * when passed as an arg to virAsprintf()
- * vircgroupmock.c:462:22: error: static variable 'fakesysfsdir' is used in an inline function with external linkage [-Werror,-Wstatic-in-inline]
- */
-char *fakerootdir;
+static char *fakerootdir;
/* To add a new mocked prefix in virpcimock:
   * - add the prefix here as a define to make it easier to track what we


--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux