Created
September 12, 2017 18:40
-
-
Save kybr/09faf77ec544148f47c2a688e3509148 to your computer and use it in GitHub Desktop.
Build OpenPGM w/ scons on macOS 10.13 Beta
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scons: warning: BuildDir() and the build_dir keyword have been deprecated; | |
use VariantDir() and the variant_dir keyword instead. | |
File "/Users/ky/Projects/cuttlebone/openpgm/openpgm/pgm/SConstruct", line 237, in <module> | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from checksum.c:40: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
checksum.c:1086:16: warning: expression result unused [-Wunused-value] | |
pgm_prefetch (srcbuf); | |
^~~~~~ | |
include/impl/processor.h:46:30: note: expanded from macro 'pgm_prefetch' | |
# define pgm_prefetch(addr) (addr) | |
^~~~ | |
checksum.c:1087:17: warning: expression result unused [-Wunused-value] | |
pgm_prefetchw (dstbuf); | |
^~~~~~ | |
include/impl/processor.h:47:31: note: expanded from macro 'pgm_prefetchw' | |
# define pgm_prefetchw(addr) (addr) | |
^~~~ | |
checksum.c:1384:16: warning: expression result unused [-Wunused-value] | |
pgm_prefetch (srcbuf); | |
^~~~~~ | |
include/impl/processor.h:46:30: note: expanded from macro 'pgm_prefetch' | |
# define pgm_prefetch(addr) (addr) | |
^~~~ | |
checksum.c:1385:17: warning: expression result unused [-Wunused-value] | |
pgm_prefetchw (dstbuf); | |
^~~~~~ | |
include/impl/processor.h:47:31: note: expanded from macro 'pgm_prefetchw' | |
# define pgm_prefetchw(addr) (addr) | |
^~~~ | |
checksum.c:1482:14: warning: incompatible pointer types assigning to 'uint32_t (*)(const void *, void *, uint16_t, uint32_t)' (aka 'unsigned int (*)(const void *, void *, unsigned short, unsigned int)') from 'uint16_t (const void *, void *, uint16_t, uint32_t)' (aka 'unsigned short (const void *, void *, unsigned short, unsigned int)') [-Wincompatible-pointer-types] | |
do_csumcpy = do_csumcpy_avx2; | |
^ ~~~~~~~~~~~~~~~ | |
checksum.c:1498:14: warning: incompatible pointer types assigning to 'uint32_t (*)(const void *, void *, uint16_t, uint32_t)' (aka 'unsigned int (*)(const void *, void *, unsigned short, unsigned int)') from 'uint16_t (const void *, void *, uint16_t, uint32_t)' (aka 'unsigned short (const void *, void *, unsigned short, unsigned int)') [-Wincompatible-pointer-types] | |
do_csumcpy = do_csumcpy_sse2; | |
^ ~~~~~~~~~~~~~~~ | |
checksum.c:1506:14: warning: incompatible pointer types assigning to 'uint32_t (*)(const void *, void *, uint16_t, uint32_t)' (aka 'unsigned int (*)(const void *, void *, unsigned short, unsigned int)') from 'uint16_t (const void *, void *, uint16_t, uint32_t)' (aka 'unsigned short (const void *, void *, unsigned short, unsigned int)') [-Wincompatible-pointer-types] | |
do_csumcpy = do_csumcpy_sse2; | |
^ ~~~~~~~~~~~~~~~ | |
checksum.c:1514:14: warning: incompatible pointer types assigning to 'uint32_t (*)(const void *, void *, uint16_t, uint32_t)' (aka 'unsigned int (*)(const void *, void *, unsigned short, unsigned int)') from 'uint16_t (const void *, void *, uint16_t, uint32_t)' (aka 'unsigned short (const void *, void *, unsigned short, unsigned int)') [-Wincompatible-pointer-types] | |
do_csumcpy = do_csumcpy_mmx; | |
^ ~~~~~~~~~~~~~~ | |
checksum.c:1526:13: warning: incompatible pointer types assigning to 'uint32_t (*)(const void *, void *, uint16_t, uint32_t)' (aka 'unsigned int (*)(const void *, void *, unsigned short, unsigned int)') from 'uint16_t (const void *, void *, uint16_t, uint32_t)' (aka 'unsigned short (const void *, void *, unsigned short, unsigned int)') [-Wincompatible-pointer-types] | |
do_csumcpy = do_csumcpy_16bit; | |
^ ~~~~~~~~~~~~~~~~ | |
checksum.c:1476:1: warning: no previous prototype for function 'pgm_checksum_init' [-Wmissing-prototypes] | |
pgm_checksum_init (const pgm_cpu_t* cpu) | |
^ | |
12 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from checksum.c:40: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
checksum.c:1086:16: warning: expression result unused [-Wunused-value] | |
pgm_prefetch (srcbuf); | |
^~~~~~ | |
include/impl/processor.h:46:30: note: expanded from macro 'pgm_prefetch' | |
# define pgm_prefetch(addr) (addr) | |
^~~~ | |
checksum.c:1087:17: warning: expression result unused [-Wunused-value] | |
pgm_prefetchw (dstbuf); | |
^~~~~~ | |
include/impl/processor.h:47:31: note: expanded from macro 'pgm_prefetchw' | |
# define pgm_prefetchw(addr) (addr) | |
^~~~ | |
checksum.c:1384:16: warning: expression result unused [-Wunused-value] | |
pgm_prefetch (srcbuf); | |
^~~~~~ | |
include/impl/processor.h:46:30: note: expanded from macro 'pgm_prefetch' | |
# define pgm_prefetch(addr) (addr) | |
^~~~ | |
checksum.c:1385:17: warning: expression result unused [-Wunused-value] | |
pgm_prefetchw (dstbuf); | |
^~~~~~ | |
include/impl/processor.h:47:31: note: expanded from macro 'pgm_prefetchw' | |
# define pgm_prefetchw(addr) (addr) | |
^~~~ | |
checksum.c:1482:14: warning: incompatible pointer types assigning to 'uint32_t (*)(const void *, void *, uint16_t, uint32_t)' (aka 'unsigned int (*)(const void *, void *, unsigned short, unsigned int)') from 'uint16_t (const void *, void *, uint16_t, uint32_t)' (aka 'unsigned short (const void *, void *, unsigned short, unsigned int)') [-Wincompatible-pointer-types] | |
do_csumcpy = do_csumcpy_avx2; | |
^ ~~~~~~~~~~~~~~~ | |
checksum.c:1498:14: warning: incompatible pointer types assigning to 'uint32_t (*)(const void *, void *, uint16_t, uint32_t)' (aka 'unsigned int (*)(const void *, void *, unsigned short, unsigned int)') from 'uint16_t (const void *, void *, uint16_t, uint32_t)' (aka 'unsigned short (const void *, void *, unsigned short, unsigned int)') [-Wincompatible-pointer-types] | |
do_csumcpy = do_csumcpy_sse2; | |
^ ~~~~~~~~~~~~~~~ | |
checksum.c:1506:14: warning: incompatible pointer types assigning to 'uint32_t (*)(const void *, void *, uint16_t, uint32_t)' (aka 'unsigned int (*)(const void *, void *, unsigned short, unsigned int)') from 'uint16_t (const void *, void *, uint16_t, uint32_t)' (aka 'unsigned short (const void *, void *, unsigned short, unsigned int)') [-Wincompatible-pointer-types] | |
do_csumcpy = do_csumcpy_sse2; | |
^ ~~~~~~~~~~~~~~~ | |
checksum.c:1514:14: warning: incompatible pointer types assigning to 'uint32_t (*)(const void *, void *, uint16_t, uint32_t)' (aka 'unsigned int (*)(const void *, void *, unsigned short, unsigned int)') from 'uint16_t (const void *, void *, uint16_t, uint32_t)' (aka 'unsigned short (const void *, void *, unsigned short, unsigned int)') [-Wincompatible-pointer-types] | |
do_csumcpy = do_csumcpy_mmx; | |
^ ~~~~~~~~~~~~~~ | |
checksum.c:1526:13: warning: incompatible pointer types assigning to 'uint32_t (*)(const void *, void *, uint16_t, uint32_t)' (aka 'unsigned int (*)(const void *, void *, unsigned short, unsigned int)') from 'uint16_t (const void *, void *, uint16_t, uint32_t)' (aka 'unsigned short (const void *, void *, unsigned short, unsigned int)') [-Wincompatible-pointer-types] | |
do_csumcpy = do_csumcpy_16bit; | |
^ ~~~~~~~~~~~~~~~~ | |
checksum.c:1476:1: warning: no previous prototype for function 'pgm_checksum_init' [-Wmissing-prototypes] | |
pgm_checksum_init (const pgm_cpu_t* cpu) | |
^ | |
12 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from cpu.c:31: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from cpu.c:31: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from engine.c:42: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
engine.c:208:2: warning: implicit declaration of function 'pgm_checksum_init' is invalid in C99 [-Wimplicit-function-declaration] | |
pgm_checksum_init (&pgm_cpu); | |
^ | |
engine.c:208:2: warning: this function declaration is not a prototype [-Wstrict-prototypes] | |
4 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from engine.c:42: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
engine.c:208:2: warning: implicit declaration of function 'pgm_checksum_init' is invalid in C99 [-Wimplicit-function-declaration] | |
pgm_checksum_init (&pgm_cpu); | |
^ | |
engine.c:208:2: warning: this function declaration is not a prototype [-Wstrict-prototypes] | |
4 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from error.c:33: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from error.c:33: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from examples/async.c:35: | |
In file included from include/pgm/in.h:30: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from examples/daytime.c:43: | |
In file included from include/pgm/in.h:30: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
examples/daytime.c:322:8: warning: declaration shadows a variable in the global scope [-Wshadow] | |
char network[1024]; | |
^ | |
examples/daytime.c:52:20: note: previous declaration is here | |
static const char* network = ""; | |
^ | |
3 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
examples/getopt.c:45:9: warning: '__P' macro redefined [-Wmacro-redefined] | |
#define __P(x) x | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/sys/cdefs.h:112:9: note: previous definition is here | |
#define __P(protos) protos /* full-blown ANSI C */ | |
^ | |
examples/getopt.c:93:15: warning: initializing 'char *' with an expression of type 'const char [1]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] | |
static char *place = EMSG; /* option letter processing */ | |
^ ~~~~ | |
examples/getopt.c:103:10: warning: assigning to 'char *' from 'const char [1]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] | |
place = EMSG; | |
^ ~~~~ | |
examples/getopt.c:109:10: warning: assigning to 'char *' from 'const char [1]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] | |
place = EMSG; | |
^ ~~~~ | |
examples/getopt.c:137:10: warning: assigning to 'char *' from 'const char [1]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] | |
place = EMSG; | |
^ ~~~~ | |
examples/getopt.c:148:9: warning: assigning to 'char *' from 'const char [1]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] | |
place = EMSG; | |
^ ~~~~ | |
examples/getopt.c:87:1: warning: no previous prototype for function 'getopt' [-Wmissing-prototypes] | |
getopt(nargc, nargv, ostr) | |
^ | |
examples/getopt.c:87:7: warning: this old-style function definition is not preceded by a prototype [-Wstrict-prototypes] | |
getopt(nargc, nargv, ostr) | |
^ | |
9 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
examples/getopt_long.c:46:9: warning: '__P' macro redefined [-Wmacro-redefined] | |
#define __P(x) x | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/sys/cdefs.h:112:9: note: previous definition is here | |
#define __P(protos) protos /* full-blown ANSI C */ | |
^ | |
examples/getopt_long.c:82:15: warning: initializing 'char *' with an expression of type 'const char [1]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] | |
static char *place = EMSG; /* option letter processing */ | |
^ ~~~~ | |
examples/getopt_long.c:91:10: warning: assigning to 'char *' from 'const char [1]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] | |
place = EMSG; | |
^ ~~~~ | |
examples/getopt_long.c:96:10: warning: assigning to 'char *' from 'const char [1]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] | |
place = EMSG; | |
^ ~~~~ | |
examples/getopt_long.c:123:10: warning: assigning to 'char *' from 'const char [1]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] | |
place = EMSG; | |
^ ~~~~ | |
examples/getopt_long.c:131:9: warning: assigning to 'char *' from 'const char [1]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] | |
place = EMSG; | |
^ ~~~~ | |
7 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from thread.c:26: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from mem.c:33: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from string.c:34: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from list.c:25: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from slist.c:25: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from queue.c:25: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from hashtable.c:25: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from messages.c:32: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from math.c:25: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from packet_parse.c:26: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
packet_parse.c:126:29: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
struct sockaddr_in* sin = (struct sockaddr_in*)dst; | |
^~~~~~~~~~~~~~~~~~~~~~~~ | |
3 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from packet_test.c:34: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from sockaddr.c:30: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
sockaddr.c:975:17: warning: unused parameter 's' [-Wunused-parameter] | |
const SOCKET s, | |
^ | |
sockaddr.c:976:21: warning: unused parameter 'sa_family' [-Wunused-parameter] | |
const sa_family_t sa_family, | |
^ | |
sockaddr.c:977:29: warning: unused parameter 'gf_list' [-Wunused-parameter] | |
const struct group_filter* gf_list | |
^ | |
sockaddr.c:1372:4: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
((struct sockaddr_in*)sa)->sin_addr.s_addr = ((const struct in_addr*)((const char*)nla + sizeof(uint32_t)))->s_addr; | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
sockaddr.c:1372:49: warning: cast from 'const char *' to 'const struct in_addr *' increases required alignment from 1 to 4 [-Wcast-align] | |
((struct sockaddr_in*)sa)->sin_addr.s_addr = ((const struct in_addr*)((const char*)nla + sizeof(uint32_t)))->s_addr; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
sockaddr.c:1377:13: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
memcpy (&((struct sockaddr_in6*)sa)->sin6_addr, (const struct in6_addr*)((const char*)nla + sizeof(uint32_t)), sizeof(struct in6_addr)); | |
^~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/secure/_string.h:62:27: note: expanded from macro 'memcpy' | |
__builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest)) | |
^~~~ | |
sockaddr.c:1377:51: warning: cast from 'const char *' to 'const struct in6_addr *' increases required alignment from 1 to 4 [-Wcast-align] | |
memcpy (&((struct sockaddr_in6*)sa)->sin6_addr, (const struct in6_addr*)((const char*)nla + sizeof(uint32_t)), sizeof(struct in6_addr)); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/secure/_string.h:62:33: note: expanded from macro 'memcpy' | |
__builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest)) | |
^~~~~~~~~~~ | |
sockaddr.c:1377:13: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
memcpy (&((struct sockaddr_in6*)sa)->sin6_addr, (const struct in6_addr*)((const char*)nla + sizeof(uint32_t)), sizeof(struct in6_addr)); | |
^~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/secure/_string.h:62:62: note: expanded from macro 'memcpy' | |
__builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest)) | |
^~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/secure/_common.h:38:55: note: expanded from macro '__darwin_obsz0' | |
#define __darwin_obsz0(object) __builtin_object_size (object, 0) | |
^~~~~~ | |
sockaddr.c:1398:3: warning: cast from 'char *' to 'uint16_t *' (aka 'unsigned short *') increases required alignment from 1 to 2 [-Wcast-align] | |
*(uint16_t*)((char*)nla + sizeof(uint16_t)) = 0; /* reserved 16bit space */ | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
sockaddr.c:1402:4: warning: cast from 'char *' to 'struct in_addr *' increases required alignment from 1 to 4 [-Wcast-align] | |
((struct in_addr*)((char*)nla + sizeof(uint32_t)))->s_addr = ((const struct sockaddr_in*)sa)->sin_addr.s_addr; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
sockaddr.c:1402:65: warning: cast from 'const struct sockaddr *' to 'const struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
((struct in_addr*)((char*)nla + sizeof(uint32_t)))->s_addr = ((const struct sockaddr_in*)sa)->sin_addr.s_addr; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
sockaddr.c:1407:11: warning: cast from 'char *' to 'struct in6_addr *' increases required alignment from 1 to 4 [-Wcast-align] | |
memcpy ((struct in6_addr*)((char*)nla + sizeof(uint32_t)), &((const struct sockaddr_in6*)sa)->sin6_addr, sizeof(struct in6_addr)); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/secure/_string.h:62:27: note: expanded from macro 'memcpy' | |
__builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest)) | |
^~~~ | |
sockaddr.c:1407:64: warning: cast from 'const struct sockaddr *' to 'const struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
memcpy ((struct in6_addr*)((char*)nla + sizeof(uint32_t)), &((const struct sockaddr_in6*)sa)->sin6_addr, sizeof(struct in6_addr)); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/secure/_string.h:62:33: note: expanded from macro 'memcpy' | |
__builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest)) | |
^~~~~~~~~~~ | |
sockaddr.c:1407:11: warning: cast from 'char *' to 'struct in6_addr *' increases required alignment from 1 to 4 [-Wcast-align] | |
memcpy ((struct in6_addr*)((char*)nla + sizeof(uint32_t)), &((const struct sockaddr_in6*)sa)->sin6_addr, sizeof(struct in6_addr)); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/secure/_string.h:62:62: note: expanded from macro 'memcpy' | |
__builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest)) | |
^~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/secure/_common.h:38:55: note: expanded from macro '__darwin_obsz0' | |
#define __darwin_obsz0(object) __builtin_object_size (object, 0) | |
^~~~~~ | |
16 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from time.c:35: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from if.c:42: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
if.c:165:48: warning: cast from 'const struct sockaddr_storage *' to 'struct sockaddr *' drops const qualifier [-Wcast-qual] | |
if (0 != pgm_sockaddr_ntop ((struct sockaddr*)&gsr->gsr_group, group, sizeof (group))) | |
^ | |
if.c:167:48: warning: cast from 'const struct sockaddr_storage *' to 'struct sockaddr *' drops const qualifier [-Wcast-qual] | |
if (0 != pgm_sockaddr_ntop ((struct sockaddr*)&gsr->gsr_source, source, sizeof (source))) | |
^ | |
if.c:169:48: warning: cast from 'const struct sockaddr_storage *' to 'struct sockaddr *' drops const qualifier [-Wcast-qual] | |
if (0 != pgm_sockaddr_ntop ((struct sockaddr*)&gsr->gsr_addr, addr, sizeof (addr))) | |
^ | |
if.c:424:42: warning: implicit declaration of function 'inet_ntoa' is invalid in C99 [-Wimplicit-function-declaration] | |
pgm_debug ("IPv4 network address: %s", inet_ntoa (t)); | |
^ | |
if.c:424:42: warning: this function declaration is not a prototype [-Wstrict-prototypes] | |
if.c:424:42: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] | |
pgm_debug ("IPv4 network address: %s", inet_ntoa (t)); | |
~~ ^~~~~~~~~~~~~ | |
%d | |
include/impl/messages.h:55:37: note: expanded from macro 'pgm_debug' | |
pgm__log (PGM_LOG_LEVEL_DEBUG, __VA_ARGS__); \ | |
^~~~~~~~~~~ | |
if.c:481:33: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
IN_MULTICAST(pgm_ntohl (((struct sockaddr_in*)(res->ai_addr))->sin_addr.s_addr))) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet/in.h:335:36: note: expanded from macro 'IN_MULTICAST' | |
#define IN_MULTICAST(i) IN_CLASSD(i) | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet/in.h:331:37: note: expanded from macro 'IN_CLASSD' | |
#define IN_CLASSD(i) (((u_int32_t)(i) & 0xf0000000) == 0xe0000000) | |
^ | |
if.c:494:30: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
IN6_IS_ADDR_MULTICAST(&((struct sockaddr_in6*)res->ai_addr)->sin6_addr)) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet6/in6.h:299:36: note: expanded from macro 'IN6_IS_ADDR_MULTICAST' | |
#define IN6_IS_ADDR_MULTICAST(a) ((a)->s6_addr[0] == 0xff) | |
^ | |
if.c:649:65: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
if ((AF_INET == res->ai_family && IN_MULTICAST(pgm_ntohl (((struct sockaddr_in*)(res->ai_addr))->sin_addr.s_addr))) || | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet/in.h:335:36: note: expanded from macro 'IN_MULTICAST' | |
#define IN_MULTICAST(i) IN_CLASSD(i) | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet/in.h:331:37: note: expanded from macro 'IN_CLASSD' | |
#define IN_CLASSD(i) (((u_int32_t)(i) & 0xf0000000) == 0xe0000000) | |
^ | |
if.c:650:65: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
(AF_INET6 == res->ai_family && IN6_IS_ADDR_MULTICAST(&((struct sockaddr_in6*)res->ai_addr)->sin6_addr))) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet6/in6.h:299:36: note: expanded from macro 'IN6_IS_ADDR_MULTICAST' | |
#define IN6_IS_ADDR_MULTICAST(a) ((a)->s6_addr[0] == 0xff) | |
^ | |
if.c:661:66: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
if ((AF_INET == res->ai_family && IN_MULTICAST(pgm_ntohl (((struct sockaddr_in*)(res->ai_addr))->sin_addr.s_addr))) || | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet/in.h:335:36: note: expanded from macro 'IN_MULTICAST' | |
#define IN_MULTICAST(i) IN_CLASSD(i) | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet/in.h:331:37: note: expanded from macro 'IN_CLASSD' | |
#define IN_CLASSD(i) (((u_int32_t)(i) & 0xf0000000) == 0xe0000000) | |
^ | |
if.c:662:66: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
(AF_INET6 == res->ai_family && IN6_IS_ADDR_MULTICAST(&((struct sockaddr_in6*)res->ai_addr)->sin6_addr))) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet6/in6.h:299:36: note: expanded from macro 'IN6_IS_ADDR_MULTICAST' | |
#define IN6_IS_ADDR_MULTICAST(a) ((a)->s6_addr[0] == 0xff) | |
^ | |
if.c:675:66: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
if ((AF_INET == res->ai_family && IN_MULTICAST(pgm_ntohl (((struct sockaddr_in*)(res->ai_addr))->sin_addr.s_addr))) || | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet/in.h:335:36: note: expanded from macro 'IN_MULTICAST' | |
#define IN_MULTICAST(i) IN_CLASSD(i) | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet/in.h:331:37: note: expanded from macro 'IN_CLASSD' | |
#define IN_CLASSD(i) (((u_int32_t)(i) & 0xf0000000) == 0xe0000000) | |
^ | |
if.c:676:66: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
(AF_INET6 == res->ai_family && IN6_IS_ADDR_MULTICAST(&((struct sockaddr_in6*)res->ai_addr)->sin6_addr))) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet6/in6.h:299:36: note: expanded from macro 'IN6_IS_ADDR_MULTICAST' | |
#define IN6_IS_ADDR_MULTICAST(a) ((a)->s6_addr[0] == 0xff) | |
^ | |
if.c:698:33: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
IN_MULTICAST(pgm_ntohl (((struct sockaddr_in*)(res->ai_addr))->sin_addr.s_addr))) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet/in.h:335:36: note: expanded from macro 'IN_MULTICAST' | |
#define IN_MULTICAST(i) IN_CLASSD(i) | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet/in.h:331:37: note: expanded from macro 'IN_CLASSD' | |
#define IN_CLASSD(i) (((u_int32_t)(i) & 0xf0000000) == 0xe0000000) | |
^ | |
if.c:711:30: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
IN6_IS_ADDR_MULTICAST(&((struct sockaddr_in6*)res->ai_addr)->sin6_addr)) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet6/in6.h:299:36: note: expanded from macro 'IN6_IS_ADDR_MULTICAST' | |
#define IN6_IS_ADDR_MULTICAST(a) ((a)->s6_addr[0] == 0xff) | |
^ | |
if.c:840:59: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
const struct in_addr ifaddr = { .s_addr = pgm_ntohl (((struct sockaddr_in*)ifa->ifa_addr)->sin_addr.s_addr) }; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:841:59: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
const struct in_addr netmask = { .s_addr = pgm_ntohl (((struct sockaddr_in*)ifa->ifa_netmask)->sin_addr.s_addr) }; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:886:5: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
((struct sockaddr_in6*)ifa->ifa_addr)->sin6_scope_id == sa6_addr.sin6_scope_id) ) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:888:36: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
const struct in6_addr ifaddr = ((struct sockaddr_in6*)ifa->ifa_addr)->sin6_addr; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:889:37: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
const struct in6_addr netmask = ((struct sockaddr_in6*)ifa->ifa_netmask)->sin6_addr; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:1029:44: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
if (pgm_inet_pton (AF_INET6, literal, &((struct sockaddr_in6*)addr)->sin6_addr) && | |
^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:1030:32: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
IN6_IS_ADDR_MULTICAST(&((struct sockaddr_in6*)addr)->sin6_addr)) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet6/in6.h:299:36: note: expanded from macro 'IN6_IS_ADDR_MULTICAST' | |
#define IN6_IS_ADDR_MULTICAST(a) ((a)->s6_addr[0] == 0xff) | |
^ | |
if.c:1033:6: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
((struct sockaddr_in6*)addr)->sin6_port = 0; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:1034:6: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
((struct sockaddr_in6*)addr)->sin6_flowinfo = 0; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:1035:6: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
((struct sockaddr_in6*)addr)->sin6_scope_id = 0; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:1051:39: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
pgm_inet_pton (AF_INET, group, &((struct sockaddr_in*)addr)->sin_addr) && | |
^~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:1052:31: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
IN_MULTICAST(pgm_ntohl (((struct sockaddr_in*)addr)->sin_addr.s_addr))) | |
^~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet/in.h:335:36: note: expanded from macro 'IN_MULTICAST' | |
#define IN_MULTICAST(i) IN_CLASSD(i) | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet/in.h:331:37: note: expanded from macro 'IN_CLASSD' | |
#define IN_CLASSD(i) (((u_int32_t)(i) & 0xf0000000) == 0xe0000000) | |
^ | |
if.c:1066:40: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
pgm_inet_pton (AF_INET6, group, &((struct sockaddr_in6*)addr)->sin6_addr) && | |
^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:1067:30: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
IN6_IS_ADDR_MULTICAST(&((struct sockaddr_in6*)addr)->sin6_addr)) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet6/in6.h:299:36: note: expanded from macro 'IN6_IS_ADDR_MULTICAST' | |
#define IN6_IS_ADDR_MULTICAST(a) ((a)->s6_addr[0] == 0xff) | |
^ | |
if.c:1070:4: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
((struct sockaddr_in6*)addr)->sin6_port = 0; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:1071:4: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
((struct sockaddr_in6*)addr)->sin6_flowinfo = 0; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:1072:4: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
((struct sockaddr_in6*)addr)->sin6_scope_id = 0; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:1104:6: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
((struct sockaddr_in*)addr)->sin_addr.s_addr = pgm_htonl (sa.sin_addr.s_addr); | |
^~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:1208:55: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
if ((AF_INET6 != family && IN_MULTICAST(pgm_ntohl (((struct sockaddr_in*)res->ai_addr)->sin_addr.s_addr))) || | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet/in.h:335:36: note: expanded from macro 'IN_MULTICAST' | |
#define IN_MULTICAST(i) IN_CLASSD(i) | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet/in.h:331:37: note: expanded from macro 'IN_CLASSD' | |
#define IN_CLASSD(i) (((u_int32_t)(i) & 0xf0000000) == 0xe0000000) | |
^ | |
if.c:1209:54: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
(AF_INET != family && IN6_IS_ADDR_MULTICAST(&((struct sockaddr_in6*)res->ai_addr)->sin6_addr))) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet6/in6.h:299:36: note: expanded from macro 'IN6_IS_ADDR_MULTICAST' | |
#define IN6_IS_ADDR_MULTICAST(a) ((a)->s6_addr[0] == 0xff) | |
^ | |
if.c:1449:77: warning: cast from 'const struct sockaddr_storage *' to 'struct sockaddr *' drops const qualifier [-Wcast-qual] | |
memcpy (&gsr->gsr_addr, &ir->ir_addr, pgm_sockaddr_len ((struct sockaddr*)&ir->ir_addr)); | |
^ | |
if.c:1549:10: warning: address of array 'ir->ir_name' will always evaluate to 'true' [-Wpointer-bool-conversion] | |
ir->ir_name ? "\"" : "", ir->ir_name ? ir->ir_name : "(null)", ir->ir_name ? "\"" : ""); | |
~~~~^~~~~~~ ~ | |
if.c:1549:35: warning: address of array 'ir->ir_name' will always evaluate to 'true' [-Wpointer-bool-conversion] | |
ir->ir_name ? "\"" : "", ir->ir_name ? ir->ir_name : "(null)", ir->ir_name ? "\"" : ""); | |
~~~~^~~~~~~ ~ | |
if.c:1549:73: warning: address of array 'ir->ir_name' will always evaluate to 'true' [-Wpointer-bool-conversion] | |
ir->ir_name ? "\"" : "", ir->ir_name ? ir->ir_name : "(null)", ir->ir_name ? "\"" : ""); | |
~~~~^~~~~~~ ~ | |
if.c:1557:33: warning: incompatible pointer types passing 'struct sockaddr_storage *' to parameter of type 'const struct sockaddr *' [-Wincompatible-pointer-types] | |
if (0 != pgm_sockaddr_ntop (&resolved_interface.ir_addr, s, sizeof(s))) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
include/impl/sockaddr.h:135:73: note: passing argument to parameter 'sa' here | |
PGM_GNUC_INTERNAL int pgm_sockaddr_ntop (const struct sockaddr*restrict sa, char*restrict dst, size_t ulen); | |
^ | |
if.c:1558:11: warning: equality comparison result unused [-Wunused-comparison] | |
s[0] == 0; | |
~~~~~^~~~ | |
if.c:1558:11: note: use '=' to turn this equality comparison into an assignment | |
s[0] == 0; | |
^~ | |
= | |
if.c:1559:60: warning: address of array 'ir->ir_name' will always evaluate to 'true' [-Wpointer-bool-conversion] | |
pgm_debug ("Interface \"%s\" detected as \"%s\".", ir->ir_name ? ir->ir_name : "", s); | |
~~~~^~~~~~~ ~ | |
include/impl/messages.h:55:37: note: expanded from macro 'pgm_debug' | |
pgm__log (PGM_LOG_LEVEL_DEBUG, __VA_ARGS__); \ | |
^~~~~~~~~~~ | |
if.c:1657:45: warning: incompatible pointer types passing 'struct sockaddr_storage *' to parameter of type 'struct sockaddr *' [-Wincompatible-pointer-types] | |
if (!set_default_multicast_group (family, &gsr->gsr_group)) { | |
^~~~~~~~~~~~~~~ | |
if.c:1331:19: note: passing argument to parameter 'sa' here | |
struct sockaddr* sa | |
^ | |
if.c:1775:96: warning: cast from 'const struct sockaddr_storage *' to 'struct sockaddr *' drops const qualifier [-Wcast-qual] | |
memcpy (&send_gsr->gsr_addr, &primary_interface->ir_addr, pgm_sockaddr_len ((struct sockaddr*)&primary_interface->ir_addr)); | |
^ | |
if.c:1797:26: warning: address of array 'primary_interface->ir_name' will always evaluate to 'true' [-Wpointer-bool-conversion] | |
primary_interface->ir_name ? "\"":"", primary_interface->ir_name ? primary_interface->ir_name : "(null)", primary_interface->ir_name ? "\"":""); | |
~~~~~~~~~~~~~~~~~~~^~~~~~~ ~ | |
if.c:1797:64: warning: address of array 'primary_interface->ir_name' will always evaluate to 'true' [-Wpointer-bool-conversion] | |
primary_interface->ir_name ? "\"":"", primary_interface->ir_name ? primary_interface->ir_name : "(null)", primary_interface->ir_name ? "\"":""); | |
~~~~~~~~~~~~~~~~~~~^~~~~~~ ~ | |
if.c:1797:132: warning: address of array 'primary_interface->ir_name' will always evaluate to 'true' [-Wpointer-bool-conversion] | |
primary_interface->ir_name ? "\"":"", primary_interface->ir_name ? primary_interface->ir_name : "(null)", primary_interface->ir_name ? "\"":""); | |
~~~~~~~~~~~~~~~~~~~^~~~~~~ ~ | |
50 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from inet_lnaof.c:30: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from getifaddrs.c:53: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from get_nprocs.c:42: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from getnetbyname.c:31: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from getnodeaddr.c:38: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
getnodeaddr.c:118:25: warning: cast from 'char *' to 'struct addrinfo *' increases required alignment from 1 to 8 [-Wcast-align] | |
struct addrinfo* t = (struct addrinfo*)(p); | |
^~~~~~~~~~~~~~~~~~~~~ | |
getnodeaddr.c:125:15: warning: incompatible pointer types assigning to 'struct addrinfo *' from 'char *' [-Wincompatible-pointer-types] | |
t->ai_next = (NULL == ai->ai_next) ? NULL : p; | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
getnodeaddr.c:110:20: warning: unused variable 'prev' [-Wunused-variable] | |
struct addrinfo* prev = NULL; | |
^ | |
getnodeaddr.c:210:8: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
if (((struct sockaddr_in *)ifa->ifa_addr)->sin_addr.s_addr == ((struct in_addr*)(he->h_addr_list[0]))->s_addr) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
getnodeaddr.c:210:66: warning: cast from 'char *' to 'struct in_addr *' increases required alignment from 1 to 4 [-Wcast-align] | |
if (((struct sockaddr_in *)ifa->ifa_addr)->sin_addr.s_addr == ((struct in_addr*)(he->h_addr_list[0]))->s_addr) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
7 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from getprotobyname.c:27: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from indextoaddr.c:32: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
indextoaddr.c:60:5: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
((struct sockaddr_in*)ifsa)->sin_addr.s_addr = INADDR_ANY; | |
^~~~~~~~~~~~~~~~~~~~~~~~~ | |
indextoaddr.c:64:5: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
((struct sockaddr_in6*)ifsa)->sin6_addr = in6addr_any; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
4 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from indextoname.c:31: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from nametoindex.c:31: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from inet_network.c:26: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from md5.c:29: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
md5.c:364:3: warning: cast from 'char *' to 'uint32_t *' (aka 'unsigned int *') increases required alignment from 1 to 4 [-Wcast-align] | |
*(uint32_t*) &ctx->buffer[bytes + pad] = SWAP (ctx->total[0] << 3); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
md5.c:365:3: warning: cast from 'char *' to 'uint32_t *' (aka 'unsigned int *') increases required alignment from 1 to 4 [-Wcast-align] | |
*(uint32_t*) &ctx->buffer[bytes + pad + 4] = SWAP ((ctx->total[1] << 3) | | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
4 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from rand.c:30: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from gsi.c:31: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
gsi.c:166:17: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
memcpy (gsi, &((struct sockaddr_in*)(res->ai_addr))->sin_addr, sizeof(struct in_addr)); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/secure/_string.h:62:33: note: expanded from macro 'memcpy' | |
__builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest)) | |
^~~~~~~~~~~ | |
3 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from tsi.c:26: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from txw.c:26: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
txw.c:310:39: warning: format specifies type 'void *' but the argument has type 'const char *' [-Wformat-pedantic] | |
pgm_debug ("add (window:%p skb:%p)", (const char*)window, (const char*)skb); | |
~~ ^~~~~~~~~~~~~~~~~~~ | |
%s | |
include/impl/messages.h:55:37: note: expanded from macro 'pgm_debug' | |
pgm__log (PGM_LOG_LEVEL_DEBUG, __VA_ARGS__); \ | |
^~~~~~~~~~~ | |
txw.c:310:60: warning: format specifies type 'void *' but the argument has type 'const char *' [-Wformat-pedantic] | |
pgm_debug ("add (window:%p skb:%p)", (const char*)window, (const char*)skb); | |
~~ ^~~~~~~~~~~~~~~~ | |
%s | |
include/impl/messages.h:55:37: note: expanded from macro 'pgm_debug' | |
pgm__log (PGM_LOG_LEVEL_DEBUG, __VA_ARGS__); \ | |
^~~~~~~~~~~ | |
txw.c:643:6: warning: cast from 'char *' to 'uint16_t *' (aka 'unsigned short *') increases required alignment from 1 to 2 [-Wcast-align] | |
*(uint16_t*)((char*)odata_skb->data + parity_length) = odata_tsdu_length; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
5 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from rxw.c:26: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
rxw.c:375:64: warning: cast from 'char const (*)[48]' to 'struct pgm_rxw_state_t *' drops const qualifier [-Wcast-qual] | |
const pgm_rxw_state_t* const first_state = (pgm_rxw_state_t*)&first_skb->cb; | |
^ | |
rxw.c:804:57: warning: cast from 'char const (*)[48]' to 'struct pgm_rxw_state_t *' drops const qualifier [-Wcast-qual] | |
const pgm_rxw_state_t* first_state = (pgm_rxw_state_t*)&first_skb->cb; | |
^ | |
rxw.c:1517:29: warning: cast from 'char *' to 'uint16_t *' (aka 'unsigned short *') increases required alignment from 1 to 2 [-Wcast-align] | |
const uint16_t pktlen = *(uint16_t*)( (char*)repair_skb->tail - sizeof(uint16_t)); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
5 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from skbuff.c:25: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from socket.c:35: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
socket.c:1562:22: warning: initializing 'void *' with an expression of type 'const void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] | |
void* restrict tmp_optval = optval; | |
^ ~~~~~~ | |
socket.c:1613:20: warning: initializing 'void *' with an expression of type 'const void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] | |
void* restrict tmp_optval = optval; | |
^ ~~~~~~ | |
socket.c:2268:82: warning: cast from 'const struct sockaddr_storage *' to 'struct sockaddr *' drops const qualifier [-Wcast-qual] | |
memcpy(&send_addr, &send_req->ir_address, pgm_sockaddr_len ((struct sockaddr *)&send_req->ir_address)); | |
^ | |
5 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from source.c:27: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from receiver.c:27: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
receiver.c:1370:47: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses] | |
(AF_INET6 == sock->send_addr.ss_family) ? | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | |
receiver.c:1370:47: note: place parentheses around the '+' expression to silence this warning | |
(AF_INET6 == sock->send_addr.ss_family) ? | |
^ | |
receiver.c:1370:47: note: place parentheses around the '?:' expression to evaluate it first | |
(AF_INET6 == sock->send_addr.ss_family) ? | |
^ | |
receiver.c:2175:14: warning: cast from 'char *' to 'uint16_t *' (aka 'unsigned short *') increases required alignment from 1 to 2 [-Wcast-align] | |
pgm_ntohs(*(uint16_t*)( (char*)( skb->pgm_data + 1 ) + sizeof(uint16_t))) : | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
4 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from recv.c:40: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from timer.c:26: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from net.c:35: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from rate_control.c:25: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from reed_solomon.c:30: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from ref/debug-Darwin-x86_64/galois_tables.c:25: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from wsastrerror.c:24: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
wsastrerror.c:35:9: warning: returning 'const char [9]' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] | |
return _("Unknown."); | |
^~~~~~~~~~~~~ | |
include/impl/i18n.h:32:20: note: expanded from macro '_' | |
# define _(String) (String) | |
^~~~~~~~ | |
wsastrerror.c:32:12: warning: unused parameter 'wsa_errnum' [-Wunused-parameter] | |
const int wsa_errnum | |
^ | |
wsastrerror.c:43:9: warning: returning 'const char [9]' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] | |
return _("Unknown."); | |
^~~~~~~~~~~~~ | |
include/impl/i18n.h:32:20: note: expanded from macro '_' | |
# define _(String) (String) | |
^~~~~~~~ | |
wsastrerror.c:40:12: warning: unused parameter 'adapter_errnum' [-Wunused-parameter] | |
const int adapter_errnum | |
^ | |
wsastrerror.c:50:12: warning: unused parameter 'win_errnum' [-Wunused-parameter] | |
const int win_errnum | |
^ | |
7 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from histogram.c:29: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from ref/debug-Darwin-x86_64/version.c:26: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from examples/purinrecv.c:42: | |
In file included from include/pgm/in.h:30: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from examples/purinsend.c:34: | |
In file included from include/pgm/in.h:30: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from examples/shortcakerecv.c:39: | |
In file included from include/pgm/in.h:30: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
examples/shortcakerecv.c:295:8: warning: declaration shadows a variable in the global scope [-Wshadow] | |
char network[1024]; | |
^ | |
examples/shortcakerecv.c:49:20: note: previous declaration is here | |
static const char* network = ""; | |
^ | |
3 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from ref/debug-Darwin-x86_64/galois_tables.c:25: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from get_nprocs.c:42: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from getifaddrs.c:53: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from getnetbyname.c:31: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from getnodeaddr.c:38: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
getnodeaddr.c:118:25: warning: cast from 'char *' to 'struct addrinfo *' increases required alignment from 1 to 8 [-Wcast-align] | |
struct addrinfo* t = (struct addrinfo*)(p); | |
^~~~~~~~~~~~~~~~~~~~~ | |
getnodeaddr.c:125:15: warning: incompatible pointer types assigning to 'struct addrinfo *' from 'char *' [-Wincompatible-pointer-types] | |
t->ai_next = (NULL == ai->ai_next) ? NULL : p; | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
getnodeaddr.c:110:20: warning: unused variable 'prev' [-Wunused-variable] | |
struct addrinfo* prev = NULL; | |
^ | |
getnodeaddr.c:210:8: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
if (((struct sockaddr_in *)ifa->ifa_addr)->sin_addr.s_addr == ((struct in_addr*)(he->h_addr_list[0]))->s_addr) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
getnodeaddr.c:210:66: warning: cast from 'char *' to 'struct in_addr *' increases required alignment from 1 to 4 [-Wcast-align] | |
if (((struct sockaddr_in *)ifa->ifa_addr)->sin_addr.s_addr == ((struct in_addr*)(he->h_addr_list[0]))->s_addr) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
7 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from getprotobyname.c:27: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from gsi.c:31: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
gsi.c:166:17: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
memcpy (gsi, &((struct sockaddr_in*)(res->ai_addr))->sin_addr, sizeof(struct in_addr)); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/secure/_string.h:62:33: note: expanded from macro 'memcpy' | |
__builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest)) | |
^~~~~~~~~~~ | |
3 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from hashtable.c:25: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from histogram.c:29: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from if.c:42: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
if.c:165:48: warning: cast from 'const struct sockaddr_storage *' to 'struct sockaddr *' drops const qualifier [-Wcast-qual] | |
if (0 != pgm_sockaddr_ntop ((struct sockaddr*)&gsr->gsr_group, group, sizeof (group))) | |
^ | |
if.c:167:48: warning: cast from 'const struct sockaddr_storage *' to 'struct sockaddr *' drops const qualifier [-Wcast-qual] | |
if (0 != pgm_sockaddr_ntop ((struct sockaddr*)&gsr->gsr_source, source, sizeof (source))) | |
^ | |
if.c:169:48: warning: cast from 'const struct sockaddr_storage *' to 'struct sockaddr *' drops const qualifier [-Wcast-qual] | |
if (0 != pgm_sockaddr_ntop ((struct sockaddr*)&gsr->gsr_addr, addr, sizeof (addr))) | |
^ | |
if.c:424:42: warning: implicit declaration of function 'inet_ntoa' is invalid in C99 [-Wimplicit-function-declaration] | |
pgm_debug ("IPv4 network address: %s", inet_ntoa (t)); | |
^ | |
if.c:424:42: warning: this function declaration is not a prototype [-Wstrict-prototypes] | |
if.c:424:42: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] | |
pgm_debug ("IPv4 network address: %s", inet_ntoa (t)); | |
~~ ^~~~~~~~~~~~~ | |
%d | |
include/impl/messages.h:55:37: note: expanded from macro 'pgm_debug' | |
pgm__log (PGM_LOG_LEVEL_DEBUG, __VA_ARGS__); \ | |
^~~~~~~~~~~ | |
if.c:481:33: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
IN_MULTICAST(pgm_ntohl (((struct sockaddr_in*)(res->ai_addr))->sin_addr.s_addr))) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet/in.h:335:36: note: expanded from macro 'IN_MULTICAST' | |
#define IN_MULTICAST(i) IN_CLASSD(i) | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet/in.h:331:37: note: expanded from macro 'IN_CLASSD' | |
#define IN_CLASSD(i) (((u_int32_t)(i) & 0xf0000000) == 0xe0000000) | |
^ | |
if.c:494:30: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
IN6_IS_ADDR_MULTICAST(&((struct sockaddr_in6*)res->ai_addr)->sin6_addr)) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet6/in6.h:299:36: note: expanded from macro 'IN6_IS_ADDR_MULTICAST' | |
#define IN6_IS_ADDR_MULTICAST(a) ((a)->s6_addr[0] == 0xff) | |
^ | |
if.c:649:65: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
if ((AF_INET == res->ai_family && IN_MULTICAST(pgm_ntohl (((struct sockaddr_in*)(res->ai_addr))->sin_addr.s_addr))) || | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet/in.h:335:36: note: expanded from macro 'IN_MULTICAST' | |
#define IN_MULTICAST(i) IN_CLASSD(i) | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet/in.h:331:37: note: expanded from macro 'IN_CLASSD' | |
#define IN_CLASSD(i) (((u_int32_t)(i) & 0xf0000000) == 0xe0000000) | |
^ | |
if.c:650:65: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
(AF_INET6 == res->ai_family && IN6_IS_ADDR_MULTICAST(&((struct sockaddr_in6*)res->ai_addr)->sin6_addr))) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet6/in6.h:299:36: note: expanded from macro 'IN6_IS_ADDR_MULTICAST' | |
#define IN6_IS_ADDR_MULTICAST(a) ((a)->s6_addr[0] == 0xff) | |
^ | |
if.c:661:66: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
if ((AF_INET == res->ai_family && IN_MULTICAST(pgm_ntohl (((struct sockaddr_in*)(res->ai_addr))->sin_addr.s_addr))) || | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet/in.h:335:36: note: expanded from macro 'IN_MULTICAST' | |
#define IN_MULTICAST(i) IN_CLASSD(i) | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet/in.h:331:37: note: expanded from macro 'IN_CLASSD' | |
#define IN_CLASSD(i) (((u_int32_t)(i) & 0xf0000000) == 0xe0000000) | |
^ | |
if.c:662:66: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
(AF_INET6 == res->ai_family && IN6_IS_ADDR_MULTICAST(&((struct sockaddr_in6*)res->ai_addr)->sin6_addr))) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet6/in6.h:299:36: note: expanded from macro 'IN6_IS_ADDR_MULTICAST' | |
#define IN6_IS_ADDR_MULTICAST(a) ((a)->s6_addr[0] == 0xff) | |
^ | |
if.c:675:66: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
if ((AF_INET == res->ai_family && IN_MULTICAST(pgm_ntohl (((struct sockaddr_in*)(res->ai_addr))->sin_addr.s_addr))) || | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet/in.h:335:36: note: expanded from macro 'IN_MULTICAST' | |
#define IN_MULTICAST(i) IN_CLASSD(i) | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet/in.h:331:37: note: expanded from macro 'IN_CLASSD' | |
#define IN_CLASSD(i) (((u_int32_t)(i) & 0xf0000000) == 0xe0000000) | |
^ | |
if.c:676:66: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
(AF_INET6 == res->ai_family && IN6_IS_ADDR_MULTICAST(&((struct sockaddr_in6*)res->ai_addr)->sin6_addr))) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet6/in6.h:299:36: note: expanded from macro 'IN6_IS_ADDR_MULTICAST' | |
#define IN6_IS_ADDR_MULTICAST(a) ((a)->s6_addr[0] == 0xff) | |
^ | |
if.c:698:33: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
IN_MULTICAST(pgm_ntohl (((struct sockaddr_in*)(res->ai_addr))->sin_addr.s_addr))) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet/in.h:335:36: note: expanded from macro 'IN_MULTICAST' | |
#define IN_MULTICAST(i) IN_CLASSD(i) | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet/in.h:331:37: note: expanded from macro 'IN_CLASSD' | |
#define IN_CLASSD(i) (((u_int32_t)(i) & 0xf0000000) == 0xe0000000) | |
^ | |
if.c:711:30: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
IN6_IS_ADDR_MULTICAST(&((struct sockaddr_in6*)res->ai_addr)->sin6_addr)) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet6/in6.h:299:36: note: expanded from macro 'IN6_IS_ADDR_MULTICAST' | |
#define IN6_IS_ADDR_MULTICAST(a) ((a)->s6_addr[0] == 0xff) | |
^ | |
if.c:840:59: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
const struct in_addr ifaddr = { .s_addr = pgm_ntohl (((struct sockaddr_in*)ifa->ifa_addr)->sin_addr.s_addr) }; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:841:59: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
const struct in_addr netmask = { .s_addr = pgm_ntohl (((struct sockaddr_in*)ifa->ifa_netmask)->sin_addr.s_addr) }; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:886:5: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
((struct sockaddr_in6*)ifa->ifa_addr)->sin6_scope_id == sa6_addr.sin6_scope_id) ) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:888:36: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
const struct in6_addr ifaddr = ((struct sockaddr_in6*)ifa->ifa_addr)->sin6_addr; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:889:37: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
const struct in6_addr netmask = ((struct sockaddr_in6*)ifa->ifa_netmask)->sin6_addr; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:1029:44: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
if (pgm_inet_pton (AF_INET6, literal, &((struct sockaddr_in6*)addr)->sin6_addr) && | |
^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:1030:32: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
IN6_IS_ADDR_MULTICAST(&((struct sockaddr_in6*)addr)->sin6_addr)) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet6/in6.h:299:36: note: expanded from macro 'IN6_IS_ADDR_MULTICAST' | |
#define IN6_IS_ADDR_MULTICAST(a) ((a)->s6_addr[0] == 0xff) | |
^ | |
if.c:1033:6: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
((struct sockaddr_in6*)addr)->sin6_port = 0; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:1034:6: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
((struct sockaddr_in6*)addr)->sin6_flowinfo = 0; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:1035:6: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
((struct sockaddr_in6*)addr)->sin6_scope_id = 0; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:1051:39: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
pgm_inet_pton (AF_INET, group, &((struct sockaddr_in*)addr)->sin_addr) && | |
^~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:1052:31: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
IN_MULTICAST(pgm_ntohl (((struct sockaddr_in*)addr)->sin_addr.s_addr))) | |
^~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet/in.h:335:36: note: expanded from macro 'IN_MULTICAST' | |
#define IN_MULTICAST(i) IN_CLASSD(i) | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet/in.h:331:37: note: expanded from macro 'IN_CLASSD' | |
#define IN_CLASSD(i) (((u_int32_t)(i) & 0xf0000000) == 0xe0000000) | |
^ | |
if.c:1066:40: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
pgm_inet_pton (AF_INET6, group, &((struct sockaddr_in6*)addr)->sin6_addr) && | |
^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:1067:30: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
IN6_IS_ADDR_MULTICAST(&((struct sockaddr_in6*)addr)->sin6_addr)) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet6/in6.h:299:36: note: expanded from macro 'IN6_IS_ADDR_MULTICAST' | |
#define IN6_IS_ADDR_MULTICAST(a) ((a)->s6_addr[0] == 0xff) | |
^ | |
if.c:1070:4: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
((struct sockaddr_in6*)addr)->sin6_port = 0; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:1071:4: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
((struct sockaddr_in6*)addr)->sin6_flowinfo = 0; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:1072:4: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
((struct sockaddr_in6*)addr)->sin6_scope_id = 0; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:1104:6: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
((struct sockaddr_in*)addr)->sin_addr.s_addr = pgm_htonl (sa.sin_addr.s_addr); | |
^~~~~~~~~~~~~~~~~~~~~~~~~ | |
if.c:1208:55: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
if ((AF_INET6 != family && IN_MULTICAST(pgm_ntohl (((struct sockaddr_in*)res->ai_addr)->sin_addr.s_addr))) || | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet/in.h:335:36: note: expanded from macro 'IN_MULTICAST' | |
#define IN_MULTICAST(i) IN_CLASSD(i) | |
^ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet/in.h:331:37: note: expanded from macro 'IN_CLASSD' | |
#define IN_CLASSD(i) (((u_int32_t)(i) & 0xf0000000) == 0xe0000000) | |
^ | |
if.c:1209:54: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
(AF_INET != family && IN6_IS_ADDR_MULTICAST(&((struct sockaddr_in6*)res->ai_addr)->sin6_addr))) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/netinet6/in6.h:299:36: note: expanded from macro 'IN6_IS_ADDR_MULTICAST' | |
#define IN6_IS_ADDR_MULTICAST(a) ((a)->s6_addr[0] == 0xff) | |
^ | |
if.c:1449:77: warning: cast from 'const struct sockaddr_storage *' to 'struct sockaddr *' drops const qualifier [-Wcast-qual] | |
memcpy (&gsr->gsr_addr, &ir->ir_addr, pgm_sockaddr_len ((struct sockaddr*)&ir->ir_addr)); | |
^ | |
if.c:1549:10: warning: address of array 'ir->ir_name' will always evaluate to 'true' [-Wpointer-bool-conversion] | |
ir->ir_name ? "\"" : "", ir->ir_name ? ir->ir_name : "(null)", ir->ir_name ? "\"" : ""); | |
~~~~^~~~~~~ ~ | |
if.c:1549:35: warning: address of array 'ir->ir_name' will always evaluate to 'true' [-Wpointer-bool-conversion] | |
ir->ir_name ? "\"" : "", ir->ir_name ? ir->ir_name : "(null)", ir->ir_name ? "\"" : ""); | |
~~~~^~~~~~~ ~ | |
if.c:1549:73: warning: address of array 'ir->ir_name' will always evaluate to 'true' [-Wpointer-bool-conversion] | |
ir->ir_name ? "\"" : "", ir->ir_name ? ir->ir_name : "(null)", ir->ir_name ? "\"" : ""); | |
~~~~^~~~~~~ ~ | |
if.c:1557:33: warning: incompatible pointer types passing 'struct sockaddr_storage *' to parameter of type 'const struct sockaddr *' [-Wincompatible-pointer-types] | |
if (0 != pgm_sockaddr_ntop (&resolved_interface.ir_addr, s, sizeof(s))) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
include/impl/sockaddr.h:135:73: note: passing argument to parameter 'sa' here | |
PGM_GNUC_INTERNAL int pgm_sockaddr_ntop (const struct sockaddr*restrict sa, char*restrict dst, size_t ulen); | |
^ | |
if.c:1558:11: warning: equality comparison result unused [-Wunused-comparison] | |
s[0] == 0; | |
~~~~~^~~~ | |
if.c:1558:11: note: use '=' to turn this equality comparison into an assignment | |
s[0] == 0; | |
^~ | |
= | |
if.c:1559:60: warning: address of array 'ir->ir_name' will always evaluate to 'true' [-Wpointer-bool-conversion] | |
pgm_debug ("Interface \"%s\" detected as \"%s\".", ir->ir_name ? ir->ir_name : "", s); | |
~~~~^~~~~~~ ~ | |
include/impl/messages.h:55:37: note: expanded from macro 'pgm_debug' | |
pgm__log (PGM_LOG_LEVEL_DEBUG, __VA_ARGS__); \ | |
^~~~~~~~~~~ | |
if.c:1657:45: warning: incompatible pointer types passing 'struct sockaddr_storage *' to parameter of type 'struct sockaddr *' [-Wincompatible-pointer-types] | |
if (!set_default_multicast_group (family, &gsr->gsr_group)) { | |
^~~~~~~~~~~~~~~ | |
if.c:1331:19: note: passing argument to parameter 'sa' here | |
struct sockaddr* sa | |
^ | |
if.c:1775:96: warning: cast from 'const struct sockaddr_storage *' to 'struct sockaddr *' drops const qualifier [-Wcast-qual] | |
memcpy (&send_gsr->gsr_addr, &primary_interface->ir_addr, pgm_sockaddr_len ((struct sockaddr*)&primary_interface->ir_addr)); | |
^ | |
if.c:1797:26: warning: address of array 'primary_interface->ir_name' will always evaluate to 'true' [-Wpointer-bool-conversion] | |
primary_interface->ir_name ? "\"":"", primary_interface->ir_name ? primary_interface->ir_name : "(null)", primary_interface->ir_name ? "\"":""); | |
~~~~~~~~~~~~~~~~~~~^~~~~~~ ~ | |
if.c:1797:64: warning: address of array 'primary_interface->ir_name' will always evaluate to 'true' [-Wpointer-bool-conversion] | |
primary_interface->ir_name ? "\"":"", primary_interface->ir_name ? primary_interface->ir_name : "(null)", primary_interface->ir_name ? "\"":""); | |
~~~~~~~~~~~~~~~~~~~^~~~~~~ ~ | |
if.c:1797:132: warning: address of array 'primary_interface->ir_name' will always evaluate to 'true' [-Wpointer-bool-conversion] | |
primary_interface->ir_name ? "\"":"", primary_interface->ir_name ? primary_interface->ir_name : "(null)", primary_interface->ir_name ? "\"":""); | |
~~~~~~~~~~~~~~~~~~~^~~~~~~ ~ | |
50 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from indextoaddr.c:32: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
indextoaddr.c:60:5: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
((struct sockaddr_in*)ifsa)->sin_addr.s_addr = INADDR_ANY; | |
^~~~~~~~~~~~~~~~~~~~~~~~~ | |
indextoaddr.c:64:5: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
((struct sockaddr_in6*)ifsa)->sin6_addr = in6addr_any; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
4 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from indextoname.c:31: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from inet_lnaof.c:30: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from inet_network.c:26: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from thread.c:26: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from mem.c:33: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from string.c:34: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from list.c:25: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from slist.c:25: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from queue.c:25: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from messages.c:32: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from math.c:25: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from packet_parse.c:26: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
packet_parse.c:126:29: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
struct sockaddr_in* sin = (struct sockaddr_in*)dst; | |
^~~~~~~~~~~~~~~~~~~~~~~~ | |
3 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from packet_test.c:34: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from sockaddr.c:30: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
sockaddr.c:975:17: warning: unused parameter 's' [-Wunused-parameter] | |
const SOCKET s, | |
^ | |
sockaddr.c:976:21: warning: unused parameter 'sa_family' [-Wunused-parameter] | |
const sa_family_t sa_family, | |
^ | |
sockaddr.c:977:29: warning: unused parameter 'gf_list' [-Wunused-parameter] | |
const struct group_filter* gf_list | |
^ | |
sockaddr.c:1372:4: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
((struct sockaddr_in*)sa)->sin_addr.s_addr = ((const struct in_addr*)((const char*)nla + sizeof(uint32_t)))->s_addr; | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
sockaddr.c:1372:49: warning: cast from 'const char *' to 'const struct in_addr *' increases required alignment from 1 to 4 [-Wcast-align] | |
((struct sockaddr_in*)sa)->sin_addr.s_addr = ((const struct in_addr*)((const char*)nla + sizeof(uint32_t)))->s_addr; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
sockaddr.c:1377:13: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
memcpy (&((struct sockaddr_in6*)sa)->sin6_addr, (const struct in6_addr*)((const char*)nla + sizeof(uint32_t)), sizeof(struct in6_addr)); | |
^~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/secure/_string.h:62:27: note: expanded from macro 'memcpy' | |
__builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest)) | |
^~~~ | |
sockaddr.c:1377:51: warning: cast from 'const char *' to 'const struct in6_addr *' increases required alignment from 1 to 4 [-Wcast-align] | |
memcpy (&((struct sockaddr_in6*)sa)->sin6_addr, (const struct in6_addr*)((const char*)nla + sizeof(uint32_t)), sizeof(struct in6_addr)); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/secure/_string.h:62:33: note: expanded from macro 'memcpy' | |
__builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest)) | |
^~~~~~~~~~~ | |
sockaddr.c:1377:13: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
memcpy (&((struct sockaddr_in6*)sa)->sin6_addr, (const struct in6_addr*)((const char*)nla + sizeof(uint32_t)), sizeof(struct in6_addr)); | |
^~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/secure/_string.h:62:62: note: expanded from macro 'memcpy' | |
__builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest)) | |
^~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/secure/_common.h:38:55: note: expanded from macro '__darwin_obsz0' | |
#define __darwin_obsz0(object) __builtin_object_size (object, 0) | |
^~~~~~ | |
sockaddr.c:1398:3: warning: cast from 'char *' to 'uint16_t *' (aka 'unsigned short *') increases required alignment from 1 to 2 [-Wcast-align] | |
*(uint16_t*)((char*)nla + sizeof(uint16_t)) = 0; /* reserved 16bit space */ | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
sockaddr.c:1402:4: warning: cast from 'char *' to 'struct in_addr *' increases required alignment from 1 to 4 [-Wcast-align] | |
((struct in_addr*)((char*)nla + sizeof(uint32_t)))->s_addr = ((const struct sockaddr_in*)sa)->sin_addr.s_addr; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
sockaddr.c:1402:65: warning: cast from 'const struct sockaddr *' to 'const struct sockaddr_in *' increases required alignment from 1 to 4 [-Wcast-align] | |
((struct in_addr*)((char*)nla + sizeof(uint32_t)))->s_addr = ((const struct sockaddr_in*)sa)->sin_addr.s_addr; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
sockaddr.c:1407:11: warning: cast from 'char *' to 'struct in6_addr *' increases required alignment from 1 to 4 [-Wcast-align] | |
memcpy ((struct in6_addr*)((char*)nla + sizeof(uint32_t)), &((const struct sockaddr_in6*)sa)->sin6_addr, sizeof(struct in6_addr)); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/secure/_string.h:62:27: note: expanded from macro 'memcpy' | |
__builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest)) | |
^~~~ | |
sockaddr.c:1407:64: warning: cast from 'const struct sockaddr *' to 'const struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align] | |
memcpy ((struct in6_addr*)((char*)nla + sizeof(uint32_t)), &((const struct sockaddr_in6*)sa)->sin6_addr, sizeof(struct in6_addr)); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/secure/_string.h:62:33: note: expanded from macro 'memcpy' | |
__builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest)) | |
^~~~~~~~~~~ | |
sockaddr.c:1407:11: warning: cast from 'char *' to 'struct in6_addr *' increases required alignment from 1 to 4 [-Wcast-align] | |
memcpy ((struct in6_addr*)((char*)nla + sizeof(uint32_t)), &((const struct sockaddr_in6*)sa)->sin6_addr, sizeof(struct in6_addr)); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/secure/_string.h:62:62: note: expanded from macro 'memcpy' | |
__builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest)) | |
^~~~ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/secure/_common.h:38:55: note: expanded from macro '__darwin_obsz0' | |
#define __darwin_obsz0(object) __builtin_object_size (object, 0) | |
^~~~~~ | |
16 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from time.c:35: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from nametoindex.c:31: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from md5.c:29: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
md5.c:364:3: warning: cast from 'char *' to 'uint32_t *' (aka 'unsigned int *') increases required alignment from 1 to 4 [-Wcast-align] | |
*(uint32_t*) &ctx->buffer[bytes + pad] = SWAP (ctx->total[0] << 3); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
md5.c:365:3: warning: cast from 'char *' to 'uint32_t *' (aka 'unsigned int *') increases required alignment from 1 to 4 [-Wcast-align] | |
*(uint32_t*) &ctx->buffer[bytes + pad + 4] = SWAP ((ctx->total[1] << 3) | | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
4 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from rand.c:30: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from tsi.c:26: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from txw.c:26: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
txw.c:310:39: warning: format specifies type 'void *' but the argument has type 'const char *' [-Wformat-pedantic] | |
pgm_debug ("add (window:%p skb:%p)", (const char*)window, (const char*)skb); | |
~~ ^~~~~~~~~~~~~~~~~~~ | |
%s | |
include/impl/messages.h:55:37: note: expanded from macro 'pgm_debug' | |
pgm__log (PGM_LOG_LEVEL_DEBUG, __VA_ARGS__); \ | |
^~~~~~~~~~~ | |
txw.c:310:60: warning: format specifies type 'void *' but the argument has type 'const char *' [-Wformat-pedantic] | |
pgm_debug ("add (window:%p skb:%p)", (const char*)window, (const char*)skb); | |
~~ ^~~~~~~~~~~~~~~~ | |
%s | |
include/impl/messages.h:55:37: note: expanded from macro 'pgm_debug' | |
pgm__log (PGM_LOG_LEVEL_DEBUG, __VA_ARGS__); \ | |
^~~~~~~~~~~ | |
txw.c:643:6: warning: cast from 'char *' to 'uint16_t *' (aka 'unsigned short *') increases required alignment from 1 to 2 [-Wcast-align] | |
*(uint16_t*)((char*)odata_skb->data + parity_length) = odata_tsdu_length; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
5 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from rxw.c:26: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
rxw.c:375:64: warning: cast from 'char const (*)[48]' to 'struct pgm_rxw_state_t *' drops const qualifier [-Wcast-qual] | |
const pgm_rxw_state_t* const first_state = (pgm_rxw_state_t*)&first_skb->cb; | |
^ | |
rxw.c:804:57: warning: cast from 'char const (*)[48]' to 'struct pgm_rxw_state_t *' drops const qualifier [-Wcast-qual] | |
const pgm_rxw_state_t* first_state = (pgm_rxw_state_t*)&first_skb->cb; | |
^ | |
rxw.c:1517:29: warning: cast from 'char *' to 'uint16_t *' (aka 'unsigned short *') increases required alignment from 1 to 2 [-Wcast-align] | |
const uint16_t pktlen = *(uint16_t*)( (char*)repair_skb->tail - sizeof(uint16_t)); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
5 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from skbuff.c:25: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from socket.c:35: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
socket.c:1562:22: warning: initializing 'void *' with an expression of type 'const void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] | |
void* restrict tmp_optval = optval; | |
^ ~~~~~~ | |
socket.c:1613:20: warning: initializing 'void *' with an expression of type 'const void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] | |
void* restrict tmp_optval = optval; | |
^ ~~~~~~ | |
socket.c:2268:82: warning: cast from 'const struct sockaddr_storage *' to 'struct sockaddr *' drops const qualifier [-Wcast-qual] | |
memcpy(&send_addr, &send_req->ir_address, pgm_sockaddr_len ((struct sockaddr *)&send_req->ir_address)); | |
^ | |
5 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from source.c:27: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from receiver.c:27: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
receiver.c:1370:47: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses] | |
(AF_INET6 == sock->send_addr.ss_family) ? | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | |
receiver.c:1370:47: note: place parentheses around the '+' expression to silence this warning | |
(AF_INET6 == sock->send_addr.ss_family) ? | |
^ | |
receiver.c:1370:47: note: place parentheses around the '?:' expression to evaluate it first | |
(AF_INET6 == sock->send_addr.ss_family) ? | |
^ | |
receiver.c:2175:14: warning: cast from 'char *' to 'uint16_t *' (aka 'unsigned short *') increases required alignment from 1 to 2 [-Wcast-align] | |
pgm_ntohs(*(uint16_t*)( (char*)( skb->pgm_data + 1 ) + sizeof(uint16_t))) : | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
4 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from recv.c:40: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from timer.c:26: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from net.c:35: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from rate_control.c:25: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from reed_solomon.c:30: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from wsastrerror.c:24: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
wsastrerror.c:35:9: warning: returning 'const char [9]' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] | |
return _("Unknown."); | |
^~~~~~~~~~~~~ | |
include/impl/i18n.h:32:20: note: expanded from macro '_' | |
# define _(String) (String) | |
^~~~~~~~ | |
wsastrerror.c:32:12: warning: unused parameter 'wsa_errnum' [-Wunused-parameter] | |
const int wsa_errnum | |
^ | |
wsastrerror.c:43:9: warning: returning 'const char [9]' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] | |
return _("Unknown."); | |
^~~~~~~~~~~~~ | |
include/impl/i18n.h:32:20: note: expanded from macro '_' | |
# define _(String) (String) | |
^~~~~~~~ | |
wsastrerror.c:40:12: warning: unused parameter 'adapter_errnum' [-Wunused-parameter] | |
const int adapter_errnum | |
^ | |
wsastrerror.c:50:12: warning: unused parameter 'win_errnum' [-Wunused-parameter] | |
const int win_errnum | |
^ | |
7 warnings generated. | |
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option] | |
In file included from ref/debug-Darwin-x86_64/version.c:26: | |
In file included from include/impl/framework.h:30: | |
In file included from include/pgm/atomic.h:46: | |
include/pgm/types.h:96:10: warning: keyword is hidden by macro definition [-Wkeyword-macro] | |
# define restrict | |
^ | |
2 warnings generated. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment