[Asterisk-Dev] Compile warnings fixes?

brian k. west brian at bkw.org
Sat Apr 24 17:08:47 MST 2004


ast_expr.y: In function `chk_minus':
ast_expr.y:548: warning: integer constant is too large for "long" type
ast_expr.y: In function `chk_div':
ast_expr.y:627: warning: integer constant is too large for "long" type

and

hash/ndbm.c: In function `dbm_fetch':
hash/ndbm.c:111: warning: dereferencing type-punned pointer will break strict-aliasing rules
hash/ndbm.c:111: warning: dereferencing type-punned pointer will break strict-aliasing rules
hash/ndbm.c: In function `dbm_firstkey':
hash/ndbm.c:131: warning: dereferencing type-punned pointer will break strict-aliasing rules
hash/ndbm.c:131: warning: dereferencing type-punned pointer will break strict-aliasing rules
hash/ndbm.c: In function `dbm_nextkey':
hash/ndbm.c:149: warning: dereferencing type-punned pointer will break strict-aliasing rules
hash/ndbm.c:149: warning: dereferencing type-punned pointer will break strict-aliasing rules
hash/ndbm.c: In function `dbm_delete':
hash/ndbm.c:166: warning: dereferencing type-punned pointer will break strict-aliasing rules
hash/ndbm.c: In function `dbm_store':
hash/ndbm.c:185: warning: dereferencing type-punned pointer will break strict-aliasing rules
hash/ndbm.c:185: warning: dereferencing type-punned pointer will break strict-aliasing rules

These are a few of the things i'm trying to fix/make not be warnings :P

Anyone able to input on these?

bkw
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20040424/584e8d29/attachment.htm


More information about the asterisk-dev mailing list