11294 abi: NULL pointer errors

Review Request #2040 - Created July 1, 2019 and submitted

Information
Toomas Soome
illumos-gate
11294
6f7289f...
Reviewers
general
../static_prof.c: In function 'obj_init':
../static_prof.c:334:14: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   c->obj->fd = NULL;
              ^

../interceptor.c: In function 'generate_i_declarations':
../interceptor.c:171:15: error: comparison between pointer and integer [-Werror]
  if (*errname != NULL) {
               ^~
../interceptor.c: In function 'generate_i_call':
../interceptor.c:233:18: error: comparison between pointer and integer [-Werror]
  if (*error_name != NULL) {
                  ^~
../interceptor.c:249:18: error: comparison between pointer and integer [-Werror]
  if (*error_name != NULL) {
                  ^~
../interceptor.c: In function 'generate_i_closedown':
../interceptor.c:390:18: error: comparison between pointer and integer [-Werror]
  if (*error_name != NULL) {
                  ^~

../printfuncs.c: In function 'generate_printf':
../printfuncs.c:63:5: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  *p = NULL;
     ^
../printfuncs.c:75:29: error: comparison between pointer and integer [-Werror]
   if (*(name =  name_of(e)) == NULL) {
                             ^~
../printfuncs.c:83:11: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
    *(p+1) = NULL;
           ^
../printfuncs.c: In function 'generate_printfunc_calls':
../printfuncs.c:159:28: error: comparison between pointer and integer [-Werror]
   if (*(name = name_of(e)) == NULL) {
                            ^~
../printfuncs.c: In function 'generate_print_definitions':
../printfuncs.c:234:13: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   *c_type++ = NULL;
             ^
../printfuncs.c: In function 'generate_print_declarations':
../printfuncs.c:271:13: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   *c_type++ = NULL;
             ^

../bindings.c: In function 'generate_a_binding':
../bindings.c:172:13: error: comparison between pointer and integer [-Werror]
  if (*value == NULL) {
             ^~
../bindings.c:194:12: error: comparison between pointer and integer [-Werror]
  for (; *p != NULL; p = q) {
            ^~
../bindings.c: In function 'strpqcmp':
../bindings.c:257:5: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  *q = NULL;
     ^
../bindings.c: In function 'strpqprint':
../bindings.c:274:5: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  *q = NULL;
     ^

../symtab.c: In function 'symtab_clear_function':
../symtab.c:150:22: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  Symtab.Prototype[0] = NULL;
                      ^
../symtab.c:151:20: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  Symtab.Formals[0] = NULL;
                    ^
../symtab.c:152:20: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  Symtab.Actuals[0] = NULL;
                    ^
../symtab.c:153:17: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  Symtab.Cast[0] = NULL;
                 ^
../symtab.c: In function 'symtab_set_prototype':
../symtab.c:227:48: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  Symtab.Prototype[sizeof (Symtab.Prototype)-1] = NULL;
                                                ^
../symtab.c: In function 'symtab_set_formals':
../symtab.c:244:44: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  Symtab.Formals[sizeof (Symtab.Formals)-1] = NULL;
                                            ^
../symtab.c: In function 'symtab_set_actuals':
../symtab.c:261:44: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  Symtab.Actuals[sizeof (Symtab.Actuals)-1] = NULL;
                                            ^
../symtab.c: In function 'symtab_set_cast':
../symtab.c:276:38: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  Symtab.Cast[sizeof (Symtab.Cast)-1] = NULL;
                                      ^
../symtab.c: In function 'symtab_set_filename':
../symtab.c:292:46: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  Symtab.Filename[sizeof (Symtab.Filename)-1] = NULL;
                                              ^
../symtab.c: In function 'type_of':
../symtab.c:689:13: error: comparison between pointer and integer [-Werror]
   while (*p != NULL) {
             ^~
../symtab.c:696:6: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   *q = NULL;
      ^
../symtab.c: In function 'levels_of':
../symtab.c:718:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return (NULL);
          ^

../db.c: In function 'db_set_current_library':
../db.c:77:66: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  Database.Current_Library[sizeof (Database.Current_Library) - 1] = NULL;
                                                                  ^
../db.c: In function 'db_get_output_file':
../db.c:190:28: error: comparison between pointer and integer [-Werror]
  if (*Database.Output_File != NULL) {
                            ^~

../util.c: In function 'strnormalize':
../util.c:55:26: error: comparison between pointer and integer [-Werror]
  if (str == NULL || *str == NULL)
                          ^~
../util.c:57:19: error: comparison between pointer and integer [-Werror]
  for (p = str; *p != NULL; p++) {
                   ^~
../util.c:64:8: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   *p-- = NULL;
        ^
../util.c: In function 'strtrim':
../util.c:78:19: error: comparison between pointer and integer [-Werror]
  for (p = str; *p != NULL; p++)
                   ^~
../util.c:82:8: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   *p-- = NULL;
        ^
../util.c: In function 'strlower':
../util.c:95:19: error: comparison between pointer and integer [-Werror]
  for (p = str; *p != NULL; p++) {
                   ^~
../util.c: In function 'in_string_set':
../util.c:147:6: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   *q = NULL;
      ^
../util.c: In function 'objectname':
../util.c:265:29: error: comparison between pointer and integer [-Werror]
  while (p != NULL && *(p+1) == NULL) {
                             ^~
../util.c:267:6: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   *p = NULL;
      ^
../util.c:272:6: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   *p = NULL;
      ^
../util.c: In function 'in_string_table':
../util.c:365:28: error: comparison between pointer and integer [-Werror]
       (t->elements[i][len] == NULL ||
                            ^~

../trace.c: In function 'to_basetype':
../trace.c:631:12: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  buffer[0] = NULL;
            ^
../trace.c:632:12: error: comparison between pointer and integer [-Werror]
  for (; *p != NULL; p++) {
            ^~
../trace.c:655:6: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   *q = NULL;
      ^
../trace.c:660:8: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   *q-- = NULL;
        ^
../trace.c: In function 'to_actual':
../trace.c:678:10: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  *buffer = NULL;
          ^
../trace.c:683:20: error: comparison between pointer and integer [-Werror]
    if (*name_of(p) != NULL)
                    ^~
../trace.c: In function 'strpqcpy':
../trace.c:701:5: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  *q = NULL;
     ^

../bucket.c: In function 'checksum':
../bucket.c:727:19: error: comparison between pointer and integer [-Werror]
  for (sum = 0; *p != NULL; ++p) {
                   ^~
cc1: all warnings being treated as errors

  
C Fraire
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...