Update headers to cause warnings on unused returns and null args.
In places where an ignored return or a null-arg is a sure indication of a bug add the GCC warning attributes. The null arg annotation is not enable for Opus itself because it will cause the compiler to optimize out some null checks. I don't trust our callers quite that much.
Showing
- include/opus.h 29 additions, 29 deletionsinclude/opus.h
- include/opus_custom.h 9 additions, 9 deletionsinclude/opus_custom.h
- include/opus_defines.h 23 additions, 0 deletionsinclude/opus_defines.h
- include/opus_multistream.h 18 additions, 18 deletionsinclude/opus_multistream.h
- tests/test_opus_api.c 1 addition, 1 deletiontests/test_opus_api.c
Loading
Please register or sign in to comment