Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 584794 - app-misc/pax-utils-1.1.6 compile warnings using Clang
Summary: app-misc/pax-utils-1.1.6 compile warnings using Clang
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-01 19:05 UTC by Fabian Groffen
Modified: 2016-12-06 19:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Groffen gentoo-dev 2016-06-01 19:05:09 UTC
Some of these may be worth fixing, I have to take a look at them later.


error.c:386:12: warning: data argument not used by format string
      [-Wformat-extra-args]
           file_name, line_number);
           ^

group-member.c:57:16: warning: comparison of integers of different signs:
      'unsigned long' and 'int' [-Wsign-compare]
          && ! xalloc_oversized (n_group_slots, sizeof *gi->group))
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./xalloc-oversized.h:44:71: note: expanded from macro 'xalloc_oversized'
    ((size_t) (sizeof (ptrdiff_t) <= sizeof (size_t) ? -1 : -2) / (s) < (n))
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^

memrchr.c:71:18: warning: cast from 'const unsigned char *' to
      'const longword *' (aka 'const unsigned long *') increases required
      alignment from 1 to 8 [-Wcast-align]
  longword_ptr = (const longword *) char_ptr;
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~

vasnprintf.c:5107:35: warning: comparison of integers of different signs: 'int'
      and 'size_t' (aka 'unsigned long') [-Wsign-compare]
                        if (count < maxlen
                            ~~~~~ ^ ~~~~~~

In file included from paxmacho.c:10:
In file included from ./paxinc.h:16:
./security.h:25:39: warning: unused parameter 'allow_forking'
      [-Wunused-parameter]
static inline void security_init(bool allow_forking) {}
                                      ^
scanelf.c:842:3: warning: absolute value function 'abs' given an argument of
      type 'long' but has parameter of type 'int' which may cause truncation of
      value [-Wabsolute-value]
                SHOW_RPATH(32)
                ^
scanelf.c:776:21: note: expanded from macro 'SHOW_RPATH'
  ...len = (end ? abs(end - start) : strlen(start)); \
                  ^
scanelf.c:842:3: note: use function 'labs' instead
scanelf.c:776:21: note: expanded from macro 'SHOW_RPATH'
  ...len = (end ? abs(end - start) : strlen(start)); \
                  ^
scanelf.c:843:3: warning: absolute value function 'abs' given an argument of
      type 'long' but has parameter of type 'int' which may cause truncation of
      value [-Wabsolute-value]
                SHOW_RPATH(64)
                ^
scanelf.c:776:21: note: expanded from macro 'SHOW_RPATH'
  ...len = (end ? abs(end - start) : strlen(start)); \
                  ^
scanelf.c:843:3: note: use function 'labs' instead
scanelf.c:776:21: note: expanded from macro 'SHOW_RPATH'
  ...len = (end ? abs(end - start) : strlen(start)); \
                  ^
scanelf.c:997:39: warning: unused parameter 'elf' [-Wunused-parameter]
static char *lookup_cache_lib(elfobj *elf, const char *fname)
                                      ^
scanelf.c:997:56: warning: unused parameter 'fname' [-Wunused-parameter]
static char *lookup_cache_lib(elfobj *elf, const char *fname)
                                                       ^
scanelf.c:2012:46: warning: unused parameter 'fname' [-Wunused-parameter]
static int _load_ld_cache_config(const char *fname)
                                             ^
scanelf.c:134:14: warning: unused function 'fopenat_r' [-Wunused-function]
static FILE *fopenat_r(int dir_fd, const char *path)
             ^