Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warnings and errors #7

Open
hdatma opened this issue Aug 16, 2015 · 0 comments
Open

warnings and errors #7

hdatma opened this issue Aug 16, 2015 · 0 comments

Comments

@hdatma
Copy link

hdatma commented Aug 16, 2015

ldnsresolver.c:190:52: warning: implicit conversion from enumeration type 'enum dns_stat_t' to different enumeration type 'ldns_status' (aka 'enum ldns_enum_status') [-Wenum-conversion]
        return LdnsResolver_setResolverError(self, DNS_STAT_NODATA);
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       ^~~~~~~~~~~~~~~
ldnsresolver.c:225:48: warning: implicit conversion from enumeration type 'enum dns_stat_t' to different enumeration type 'ldns_status' (aka 'enum ldns_enum_status') [-Wenum-conversion]
    return LdnsResolver_setResolverError(self, DNS_STAT_FORMERR);
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       ^~~~~~~~~~~~~~~~
ldnsresolver.c:230:48: warning: implicit conversion from enumeration type 'enum dns_stat_t' to different enumeration type 'ldns_status' (aka 'enum ldns_enum_status') [-Wenum-conversion]
    return LdnsResolver_setResolverError(self, DNS_STAT_NOVALIDANSWER);
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       ^~~~~~~~~~~~~~~~~~~~~~
ldnsresolver.c:244:52: warning: implicit conversion from enumeration type 'enum dns_stat_t' to different enumeration type 'ldns_status' (aka 'enum ldns_enum_status') [-Wenum-conversion]
        return LdnsResolver_setResolverError(self, DNS_STAT_NODATA);
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       ^~~~~~~~~~~~~~~
ldnsresolver.c:279:48: warning: implicit conversion from enumeration type 'enum dns_stat_t' to different enumeration type 'ldns_status' (aka 'enum ldns_enum_status') [-Wenum-conversion]
    return LdnsResolver_setResolverError(self, DNS_STAT_FORMERR);
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       ^~~~~~~~~~~~~~~~
ldnsresolver.c:284:48: warning: implicit conversion from enumeration type 'enum dns_stat_t' to different enumeration type 'ldns_status' (aka 'enum ldns_enum_status') [-Wenum-conversion]
    return LdnsResolver_setResolverError(self, DNS_STAT_NOVALIDANSWER);
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       ^~~~~~~~~~~~~~~~~~~~~~
ldnsresolver.c:344:52: warning: implicit conversion from enumeration type 'enum dns_stat_t' to different enumeration type 'ldns_status' (aka 'enum ldns_enum_status') [-Wenum-conversion]
        return LdnsResolver_setResolverError(self, DNS_STAT_NODATA);
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       ^~~~~~~~~~~~~~~
ldnsresolver.c:394:48: warning: implicit conversion from enumeration type 'enum dns_stat_t' to different enumeration type 'ldns_status' (aka 'enum ldns_enum_status') [-Wenum-conversion]
    return LdnsResolver_setResolverError(self, DNS_STAT_FORMERR);
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       ^~~~~~~~~~~~~~~~
ldnsresolver.c:399:48: warning: implicit conversion from enumeration type 'enum dns_stat_t' to different enumeration type 'ldns_status' (aka 'enum ldns_enum_status') [-Wenum-conversion]
    return LdnsResolver_setResolverError(self, DNS_STAT_NOVALIDANSWER);
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       ^~~~~~~~~~~~~~~~~~~~~~
ldnsresolver.c:404:48: warning: implicit conversion from enumeration type 'enum dns_stat_t' to different enumeration type 'ldns_status' (aka 'enum ldns_enum_status') [-Wenum-conversion]
    return LdnsResolver_setResolverError(self, DNS_STAT_NOMEMORY);
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       ^~~~~~~~~~~~~~~~~
ldnsresolver.c:421:52: warning: implicit conversion from enumeration type 'enum dns_stat_t' to different enumeration type 'ldns_status' (aka 'enum ldns_enum_status') [-Wenum-conversion]
        return LdnsResolver_setResolverError(self, DNS_STAT_NODATA);
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       ^~~~~~~~~~~~~~~
ldnsresolver.c:477:48: warning: implicit conversion from enumeration type 'enum dns_stat_t' to different enumeration type 'ldns_status' (aka 'enum ldns_enum_status') [-Wenum-conversion]
    return LdnsResolver_setResolverError(self, DNS_STAT_FORMERR);
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       ^~~~~~~~~~~~~~~~
ldnsresolver.c:482:48: warning: implicit conversion from enumeration type 'enum dns_stat_t' to different enumeration type 'ldns_status' (aka 'enum ldns_enum_status') [-Wenum-conversion]
    return LdnsResolver_setResolverError(self, DNS_STAT_NOVALIDANSWER);
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       ^~~~~~~~~~~~~~~~~~~~~~
ldnsresolver.c:487:48: warning: implicit conversion from enumeration type 'enum dns_stat_t' to different enumeration type 'ldns_status' (aka 'enum ldns_enum_status') [-Wenum-conversion]
    return LdnsResolver_setResolverError(self, DNS_STAT_NOMEMORY);
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       ^~~~~~~~~~~~~~~~~
ldnsresolver.c:532:52: warning: implicit conversion from enumeration type 'enum dns_stat_t' to different enumeration type 'ldns_status' (aka 'enum ldns_enum_status') [-Wenum-conversion]
        return LdnsResolver_setResolverError(self, DNS_STAT_NODATA);
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       ^~~~~~~~~~~~~~~
ldnsresolver.c:578:48: warning: implicit conversion from enumeration type 'enum dns_stat_t' to different enumeration type 'ldns_status' (aka 'enum ldns_enum_status') [-Wenum-conversion]
    return LdnsResolver_setResolverError(self, DNS_STAT_FORMERR);
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       ^~~~~~~~~~~~~~~~
ldnsresolver.c:583:48: warning: implicit conversion from enumeration type 'enum dns_stat_t' to different enumeration type 'ldns_status' (aka 'enum ldns_enum_status') [-Wenum-conversion]
    return LdnsResolver_setResolverError(self, DNS_STAT_NOVALIDANSWER);
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       ^~~~~~~~~~~~~~~~~~~~~~
ldnsresolver.c:588:48: warning: implicit conversion from enumeration type 'enum dns_stat_t' to different enumeration type 'ldns_status' (aka 'enum ldns_enum_status') [-Wenum-conversion]
    return LdnsResolver_setResolverError(self, DNS_STAT_NOMEMORY);
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       ^~~~~~~~~~~~~~~~~
18 warnings generated.
spfevaluator.c:275:36: warning: comparison of constant 'SPF_SCORE_PERMERROR' (8) with expression of type 'bool' is always false [-Wtautological-constant-out-of-range-compare]
            && SPF_SCORE_PERMERROR == SpfEvaluator_incrementVoidLookupCounter(self,
               ~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
spfevaluator.c:298:36: warning: comparison of constant 'SPF_SCORE_PERMERROR' (8) with expression of type 'bool' is always false [-Wtautological-constant-out-of-range-compare]
            && SPF_SCORE_PERMERROR == SpfEvaluator_incrementVoidLookupCounter(self,
               ~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
spfevaluator.c:498:72: warning: format specifies type 'unsigned short' but the argument has type 'unsigned char' [-Wformat]
                 ip_version, SpfEvaluator_getDomain(self), ip_version, malicious_cidr_length,
                                                                       ^~~~~~~~~~~~~~~~~~~~~
../../libsauth/include/loghandler.h:63:60: note: expanded from macro 'LogInfo'
    LogHandler_emitWithPrefix(LOG_INFO, "info", _format, ##__VA_ARGS__)
                                                           ^
../../libsauth/include/loghandler.h:40:80: note: expanded from macro 'LogHandler_emitWithPrefix'
                LogHandler_emit(_priority, _level ": %s: " _format, _prefix, ##__VA_ARGS__); \
                                                                               ^
spfevaluator.c:499:18: warning: format specifies type 'unsigned char' but the argument has type 'unsigned short' [-Wformat]
                 cidr_length);
                 ^~~~~~~~~~~
../../libsauth/include/loghandler.h:63:60: note: expanded from macro 'LogInfo'
    LogHandler_emitWithPrefix(LOG_INFO, "info", _format, ##__VA_ARGS__)
                                                           ^
../../libsauth/include/loghandler.h:40:80: note: expanded from macro 'LogHandler_emitWithPrefix'
                LogHandler_emit(_priority, _level ": %s: " _format, _prefix, ##__VA_ARGS__); \
                                                                               ^
spfevaluator.c:498:72: warning: format specifies type 'unsigned short' but the argument has type 'unsigned char' [-Wformat]
                 ip_version, SpfEvaluator_getDomain(self), ip_version, malicious_cidr_length,
                                                                       ^~~~~~~~~~~~~~~~~~~~~
../../libsauth/include/loghandler.h:63:60: note: expanded from macro 'LogInfo'
    LogHandler_emitWithPrefix(LOG_INFO, "info", _format, ##__VA_ARGS__)
                                                           ^
../../libsauth/include/loghandler.h:42:67: note: expanded from macro 'LogHandler_emitWithPrefix'
                LogHandler_emit(_priority, _level ": " _format, ##__VA_ARGS__); \
                                                                  ^
spfevaluator.c:499:18: warning: format specifies type 'unsigned char' but the argument has type 'unsigned short' [-Wformat]
                 cidr_length);
                 ^~~~~~~~~~~
../../libsauth/include/loghandler.h:63:60: note: expanded from macro 'LogInfo'
    LogHandler_emitWithPrefix(LOG_INFO, "info", _format, ##__VA_ARGS__)
                                                           ^
../../libsauth/include/loghandler.h:42:67: note: expanded from macro 'LogHandler_emitWithPrefix'
                LogHandler_emit(_priority, _level ": " _format, ##__VA_ARGS__); \
                                                                  ^
spfevaluator.c:640:40: warning: comparison of constant 'SPF_SCORE_PERMERROR' (8) with expression of type 'bool' is always false [-Wtautological-constant-out-of-range-compare]
                && SPF_SCORE_PERMERROR == SpfEvaluator_incrementVoidLookupCounter(self,
                   ~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
spfevaluator.c:664:40: warning: comparison of constant 'SPF_SCORE_PERMERROR' (8) with expression of type 'bool' is always false [-Wtautological-constant-out-of-range-compare]
                && SPF_SCORE_PERMERROR == SpfEvaluator_incrementVoidLookupCounter(self,
                   ~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
spfevaluator.c:718:33: warning: comparison of constant 'SPF_SCORE_PERMERROR' (8) with expression of type 'bool' is always false [-Wtautological-constant-out-of-range-compare]
        if (SPF_SCORE_PERMERROR == SpfEvaluator_incrementVoidLookupCounter(self, mxquery_stat)) {
            ~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
spfevaluator.c:838:33: warning: comparison of constant 'SPF_SCORE_PERMERROR' (8) with expression of type 'bool' is always false [-Wtautological-constant-out-of-range-compare]
        if (SPF_SCORE_PERMERROR == SpfEvaluator_incrementVoidLookupCounter(self, ptrquery_stat)) {
            ~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
spfevaluator.c:922:33: warning: comparison of constant 'SPF_SCORE_PERMERROR' (8) with expression of type 'bool' is always false [-Wtautological-constant-out-of-range-compare]
        if (SPF_SCORE_PERMERROR == SpfEvaluator_incrementVoidLookupCounter(self, aquery_stat)) {
            ~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11 warnings generated.
clang: warning: ../include: 'linker' input unused
clang: warning: ../include: 'linker' input unused
clang: warning: ../include: 'linker' input unused
clang: warning: ../include: 'linker' input unused
clang: warning: ../include: 'linker' input unused
clang: warning: ../include: 'linker' input unused
clang: warning: ../include: 'linker' input unused
clang: warning: ../include: 'linker' input unused
clang: warning: ../include: 'linker' input unused
clang: warning: ../include: 'linker' input unused
clang: warning: ../include: 'linker' input unused
clang: warning: ../include: 'linker' input unused
clang: warning: ../include: 'linker' input unused
clang: warning: ../include: 'linker' input unused
dmarcaligner.c:233:23: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
    for (int i = 1; i < author_num; ++i) {
                    ~ ^ ~~~~~~~~~~
1 warning generated.
listenerthread.c:110:2: warning: "shutdown process may block" [-W#warnings]
# warning "shutdown process may block"

 ^
listenerthread.c:68:1: warning: unused function 'sock_shutdown' [-Wunused-function]
sock_shutdown(int sockfd, int how)
^
2 warnings generated.
yenma.c:238:15: warning: implicit declaration of function 'pthread_rwlock_timedwrlock' is invalid in C99 [-Wimplicit-function-declaration]
    int ret = pthread_rwlock_timedwrlock(&g_yenma_ctx_lock, &g_yenma_ctx_lock_timeout);
              ^
1 warning generated.
yenmamfi.c:629:15: warning: implicit declaration of function 'pthread_rwlock_timedrdlock' is invalid in C99 [-Wimplicit-function-declaration]
    int ret = pthread_rwlock_timedrdlock(&g_yenma_ctx_lock, &g_yenma_ctx_lock_timeout);
              ^
1 warning generated.
yenmactrl.c:240:11: warning: implicit declaration of function 'pthread_rwlock_timedwrlock' is invalid in C99 [-Wimplicit-function-declaration]
    ret = pthread_rwlock_timedwrlock(&g_yenma_ctx_lock, &g_yenma_ctx_lock_timeout);
          ^
yenmactrl.c:353:62: warning: unused parameter 'addr' [-Wunused-parameter]
YenmaCtrl_onAccept(void _ctx, int fd, const struct sockaddr *addr, socklen_t addrlen)
                                                             ^
yenmactrl.c:353:78: warning: unused parameter 'addrlen' [-Wunused-parameter]
YenmaCtrl_onAccept(void *ctx, int fd, const struct sockaddr *addr, socklen_t addrlen)
                                                                             ^
3 warnings generated.
authresult.c:111:21: warning: expression which evaluates to zero treated as a null pointer constant of type 'const char *' [-Wnon-literal-null-conversion]
    const char *p = '\0';
                    ^~~~
1 warning generated.
Undefined symbols for architecture x86_64:
  "_pthread_rwlock_timedrdlock", referenced from:
      _yenma_get_context_reference in yenmamfi.o
  "_pthread_rwlock_timedwrlock", referenced from:
      _main in yenma.o
      _YenmaCtrl_onReload in yenmactrl.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *_\* [yenma] Error 1
make[1]: **\* [all-recursive] Error 1
make: **\* [all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant