~/asterisk/chan_datacard/trunk$ make
gcc -Wextra -fPIC -DAST_MODULE=\"chan_datacard\" -D_THREAD_SAFE -I. -I/usr/include -O2 -DICONV_CONST="" -D__DEBUG__ -D__MANAGER__ -D__APP__ -c chan_datacard.c
In file included from chan_datacard.c:73:
chan_datacard.h:195: warning: missing initializer
chan_datacard.h:195: warning: (near initialization for ‘devices.lock.track.backtrace[0].num_frames’)
chan_datacard.h:200: warning: missing initializer
chan_datacard.h:200: warning: (near initialization for ‘unload_mtx.track.backtrace[0].num_frames’)
chan_datacard.h:243: warning: initialization from incompatible pointer type
chan_datacard.h:268: warning: missing initializer
chan_datacard.h:268: warning: (near initialization for ‘round_robin_mtx.track.backtrace[0].num_frames’)
In file included from chan_datacard.c:89:
__channel.c: In function ‘channel_new’:
__channel.c:18: warning: passing argument 9 of ‘__ast_channel_alloc’ makes integer from pointer without a cast
/usr/include/asterisk/channel.h:1071: note: expected ‘int’ but argument is of type ‘char *’
In file included from chan_datacard.c:89:
__channel.c: In function ‘channel_read’:
__channel.c:588: error: invalid operands to binary == (have ‘union ast_frame_subclass’ and ‘int’)
__channel.c:588: error: invalid operands to binary == (have ‘union ast_frame_subclass’ and ‘int’)
__channel.c:591: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
__channel.c:597: warning: format ‘%c’ expects type ‘int’, but argument 7 has type ‘union ast_frame_subclass’
chan_datacard.c: In function ‘load_module’:
chan_datacard.c:653: warning: passing argument 2 of ‘ast_register_application2’ from incompatible pointer type
/usr/include/asterisk/module.h:449: note: expected ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int (*)(struct ast_channel *, void *)’
chan_datacard.c:654: warning: passing argument 2 of ‘ast_register_application2’ from incompatible pointer type
/usr/include/asterisk/module.h:449: note: expected ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int (*)(struct ast_channel *, void *)’
make: *** [chan_datacard.o] Fehler 1