bug-make
[Top][All Lists]
Advanced

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

Noisy compile on Fedora 28, x86_64


From: Jeffrey Walton
Subject: Noisy compile on Fedora 28, x86_64
Date: Fri, 24 Aug 2018 14:59:05 -0400

I'm working on Fedora 28, x86_64 (fully patched). I suppose the CFLAGS
of "-DNDEBUG  -g2 -O2 -m64 -march=native" are causing the warnings.

gcc -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -DNDEBUG  -g2 -O2
-m64 -march=native -fPIC -MT glob.o -MD -MP -MF .deps/glob.Tpo -c -o
glob.o glob.c
mv -f .deps/fnmatch.Tpo .deps/fnmatch.Po
glob.c: In function ‘glob’:
glob.c:581:23: warning: implicit declaration of function ‘__alloca’;
did you mean ‘alloca’? [-Wimplicit-function-declaration]
       newp = (char *) __alloca (dirlen + 1);
                       ^~~~~~~~
                       alloca
glob.c:581:14: warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast]
       newp = (char *) __alloca (dirlen + 1);
              ^
glob.c:709:15: warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast]
        newp = (char *) __alloca (home_len + dirlen);
               ^
glob.c:732:15: warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast]
        newp = (char *) __alloca (end_name - dirname);
               ^
glob.c:783:15: warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast]
        newp = (char *) __alloca (home_len + rest_len + 1);
               ^
glob.c:814:11: warning: implicit declaration of function ‘__stat’; did
you mean ‘__xstat’? [-Wimplicit-function-declaration]
         : __stat (dirname, &st)) == 0
           ^~~~~~
           __xstat
glob.c: In function ‘glob_in_dir’:
glob.c:1256:21: warning: cast to pointer from integer of different
size [-Wint-to-pointer-cast]
    char *fullname = (char *) __alloca (dirlen + 1 + patlen + 1);
                     ^
glob.c:1283:12: warning: cast to pointer from integer of different
size [-Wint-to-pointer-cast]
    names = (struct globlink *) __alloca (sizeof (struct globlink));
            ^
glob.c:1341:32: warning: cast to pointer from integer of different
size [-Wint-to-pointer-cast]
         struct globlink *new = (struct globlink *)
                                ^
glob.c:1367:15: warning: cast to pointer from integer of different
size [-Wint-to-pointer-cast]
       names = (struct globlink *) __alloca (sizeof (struct globlink));
               ^



reply via email to

[Prev in Thread] Current Thread [Next in Thread]