Project

General

Profile

Actions

Bug #13626

closed

libsldap: implicit conversion from 'enum <anonymous>'

Added by Toomas Soome about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build errors with gcc 10:

    In file included from ../common/ns_confmgr.c:44:
    ../common/ns_confmgr.c: In function 'read_file':
    ../common/ns_internal.h:222:10: error: implicit conversion from 'enum <anonymous>' to 'ns_parse_status' [-Werror=enum-conversion]
      222 |   return (retErr); \
          |          ^
    ../common/ns_confmgr.c:126:3: note: in expansion of macro 'MKERROR'
      126 |   MKERROR(LOG_ERR, *error, NS_CONFIG_FILE, strdup(errstr),
          |   ^~~~~~~
    ../common/ns_internal.h:222:10: error: implicit conversion from 'enum <anonymous>' to 'ns_parse_status' [-Werror=enum-conversion]
      222 |   return (retErr); \
          |          ^
    ../common/ns_confmgr.c:152:4: note: in expansion of macro 'MKERROR'
      152 |    MKERROR(LOG_ERR, *error, NS_CONFIG_SYNTAX,
          |    ^~~~~~~
    ../common/ns_internal.h:222:10: error: implicit conversion from 'enum <anonymous>' to 'ns_parse_status' [-Werror=enum-conversion]
      222 |   return (retErr); \
          |          ^
    ../common/ns_confmgr.c:161:4: note: in expansion of macro 'MKERROR'
      161 |    MKERROR(LOG_ERR, *error, NS_CONFIG_SYNTAX,
          |    ^~~~~~~
    ../common/ns_internal.h:222:10: error: implicit conversion from 'enum <anonymous>' to 'ns_parse_status' [-Werror=enum-conversion]
      222 |   return (retErr); \
          |          ^
    ../common/ns_confmgr.c:170:4: note: in expansion of macro 'MKERROR'
      170 |    MKERROR(LOG_ERR, *error, NS_CONFIG_SYNTAX,
          |    ^~~~~~~
    ../common/ns_internal.h:222:10: error: implicit conversion from 'enum <anonymous>' to 'ns_parse_status' [-Werror=enum-conversion]
      222 |   return (retErr); \
          |          ^
    ../common/ns_confmgr.c:190:5: note: in expansion of macro 'MKERROR'
      190 |     MKERROR(LOG_ERR, *error, NS_CONFIG_SYNTAX,
          |     ^~~~~~~
    ../common/ns_internal.h:222:10: error: implicit conversion from 'enum <anonymous>' to 'ns_parse_status' [-Werror=enum-conversion]
      222 |   return (retErr); \
          |          ^
    ../common/ns_confmgr.c:210:5: note: in expansion of macro 'MKERROR'
      210 |     MKERROR(LOG_ERR, *error, NS_CONFIG_SYNTAX,
          |     ^~~~~~~
    ../common/ns_internal.h:222:10: error: implicit conversion from 'enum <anonymous>' to 'ns_parse_status' [-Werror=enum-conversion]
      222 |   return (retErr); \
          |          ^
    ../common/ns_confmgr.c:222:3: note: in expansion of macro 'MKERROR'
      222 |   MKERROR(LOG_ERR, *error, NS_CONFIG_SYNTAX, strdup(errstr),
          |   ^~~~~~~
    ../common/ns_internal.h:222:10: error: implicit conversion from 'enum <anonymous>' to 'ns_parse_status' [-Werror=enum-conversion]
      222 |   return (retErr); \
          |          ^
    ../common/ns_confmgr.c:230:3: note: in expansion of macro 'MKERROR'
      230 |   MKERROR(LOG_ERR, *error, NS_CONFIG_SYNTAX, strdup(errstr),
          |   ^~~~~~~
    cc1: all warnings being treated as errors
    *** Error code 1
    dmake: Fatal error: Command failed for target `pics/ns_confmgr.o'
    Current working directory /code/illumos-gate/usr/src/lib/libsldap/i386

    In file included from ../common/ns_reads.c:41:
    ../common/ns_reads.c: In function 'multi_result':
    ../common/ns_internal.h:222:10: error: implicit conversion from 'enum <anonymous>' to 'ns_state_t' [-Werror=enum-conversion]
      222 |   return (retErr); \
          |          ^
    ../common/ns_reads.c:2054:4: note: in expansion of macro 'MKERROR'
     2054 |    MKERROR(LOG_WARNING, *errorp, NS_LDAP_INTERNAL, err,
          |    ^~~~~~~
    ../common/ns_internal.h:222:10: error: implicit conversion from 'enum <anonymous>' to 'ns_state_t' [-Werror=enum-conversion]
      222 |   return (retErr); \
          |          ^
    ../common/ns_reads.c:2124:4: note: in expansion of macro 'MKERROR'
     2124 |    MKERROR(LOG_WARNING, *errorp, NS_LDAP_INTERNAL, err,
          |    ^~~~~~~
    ../common/ns_reads.c: In function 'search_state_machine':
    ../common/ns_internal.h:222:10: error: implicit conversion from 'enum <anonymous>' to 'ns_state_t' [-Werror=enum-conversion]
      222 |   return (retErr); \
          |          ^
    ../common/ns_reads.c:2382:4: note: in expansion of macro 'MKERROR'
     2382 |    MKERROR(LOG_WARNING, *errorp, NS_LDAP_INTERNAL, err,
          |    ^~~~~~~
    ../common/ns_internal.h:222:10: error: implicit conversion from 'enum <anonymous>' to 'ns_state_t' [-Werror=enum-conversion]
      222 |   return (retErr); \
          |          ^
    ../common/ns_reads.c:2923:6: note: in expansion of macro 'MKERROR'
     2923 |      MKERROR(LOG_INFO, *errorp,
          |      ^~~~~~~
    ../common/ns_internal.h:222:10: error: implicit conversion from 'enum <anonymous>' to 'ns_state_t' [-Werror=enum-conversion]
      222 |   return (retErr); \
          |          ^
    ../common/ns_reads.c:2927:6: note: in expansion of macro 'MKERROR'
     2927 |      MKERROR(LOG_WARNING, *errorp,
          |      ^~~~~~~
    ../common/ns_internal.h:222:10: error: implicit conversion from 'enum <anonymous>' to 'ns_state_t' [-Werror=enum-conversion]
      222 |   return (retErr); \
          |          ^
    ../common/ns_reads.c:2932:5: note: in expansion of macro 'MKERROR'
     2932 |     MKERROR(LOG_WARNING, *errorp, NS_LDAP_INTERNAL,
          |     ^~~~~~~
    ../common/ns_internal.h:222:10: error: implicit conversion from 'enum <anonymous>' to 'ns_state_t' [-Werror=enum-conversion]
      222 |   return (retErr); \
          |          ^
    ../common/ns_reads.c:2956:4: note: in expansion of macro 'MKERROR'
     2956 |    MKERROR(LOG_WARNING, *errorp, NS_LDAP_INTERNAL, err,
          |    ^~~~~~~
    cc1: all warnings being treated as errors
    *** Error code 1
    dmake: Warning: Command failed for target `pics/ns_reads.o'
    Current working directory /code/illumos-gate/usr/src/lib/libsldap/i386

Testing done: build/install/boot

Actions #1

Updated by Electric Monk about 1 year ago

  • Gerrit CR set to 1327
Actions #2

Updated by Toomas Soome about 1 year ago

  • Description updated (diff)
Actions #3

Updated by Electric Monk about 1 year ago

  • % Done changed from 90 to 100
  • Status changed from In Progress to Closed

git commit 81de4da4caf1b6a02c80229f9f948f69e09f9719

commit  81de4da4caf1b6a02c80229f9f948f69e09f9719
Author: Toomas Soome <tsoome@me.com>
Date:   2021-03-29T14:57:12.000Z

    13626 libsldap: implicit conversion from 'enum <anonymous>'
    Reviewed by: Yuri Pankov <yuripv@yuripv.dev>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF