Comment 1 for bug 1906789

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

With the latest SHA1 head:
14b5274a2201484dee675c3a79879c1889d92fbb for xfstest-bld
37d4f926b525fbba8aa579b9eea4ae0921ea7b7b for xfstest-dev

This test can be built on G, however this will break the build on X, with:
  xqmstats.c: In function ‘main’:
  xqmstats.c:43:3: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
     fgets(buffer, 256, stats);
     ^
  quotastats.c: In function ‘get_proc_num’:
  quotastats.c:51:2: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
    fscanf(f, "%d", &ret);
    ^
  quota.c: In function ‘main’:
  quota.c:388:16: warning: implicit declaration of function ‘reallocarray’ [-Wimplicit-function-declaration]
        fsnames = reallocarray(fsnames, fscount, sizeof(char *));
                  ^
  quota.c:388:14: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
        fsnames = reallocarray(fsnames, fscount, sizeof(char *));
                ^
  ar: `u' modifier ignored since `D' is the default (see `U')
  quota.o: In function `main':
  xfstests-bld/quota/quota.c:388: undefined reference to `reallocarray'
  collect2: error: ld returned 1 exit status
  make[3]: *** [quota] Error 1
  make[3]: *** Waiting for unfinished jobs....
  make[2]: *** [all-recursive] Error 1
  make[1]: *** [all] Error 2
  make: *** [all] Error 1

This will need some more investigation