11107 mcs: NULL pointer errors

Review Request #1892 — Created June 1, 2019 and submitted

tsoome
illumos-gate
11107
7899d90...
general
../common/utils.c: In function 'compress':
../common/utils.c:469:23: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   strings[next_str++] = NULL;
                       ^

../common/utils.c: In function 'compress':
../common/utils.c:469:23: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   strings[next_str++] = NULL;
                       ^
../common/utils.c: In function 'dohash':
../common/utils.c:531:31: error: comparison between pointer and integer [-Werror]
  for (shift = 0; (t = *str++) != NULL; shift += 7) {
                               ^~

../common/file.c: In function 'each_file':
../common/file.c:118:23: error: comparison between pointer and integer [-Werror]
        (mode_t)0666)) == NULL) {
                       ^~
../common/file.c: In function 'build_file':
../common/file.c:719:52: error: comparison between pointer and integer [-Werror]
  if (gelf_newehdr(dst_elf, gelf_getclass(src_elf)) == NULL) {
                                                    ^~
../common/file.c:746:48: error: comparison between pointer and integer [-Werror]
   if (gelf_newphdr(dst_elf, src_ehdr->e_phnum) == NULL) {
                                                ^~
../common/file.c:1044:25: error: comparison between pointer and integer [-Werror]
   if (src_ehdr->e_phnum != NULL)
                         ^~
cc1: all warnings being treated as errors


glasspelican
  1. Ship It!
  2. 
      
tsoome
tsoome
Review request changed

Status: Closed (submitted)

Loading...