AnsweredAssumed Answered

AD9361 Driver compiler warnings

Question asked by rjhale on Jan 29, 2015
Latest reply on Jan 30, 2015 by DragosB

I am compiling with Visual Studio 2013.  I get the following warnings. Do I have the right source? I got it this morning from the hub.

 

ad9361_api.c(379): warning C4087: 'axiadc_init' : declared with 'void' parameter list
ad9361_api.c(1217): warning C4087: 'axiadc_init' : declared with 'void' parameter list

ad9361.c(287): warning C4018: '<' : signed/unsigned mismatch
ad9361.c(1063): warning C4018: '>' : signed/unsigned mismatch
ad9361.c(1763): warning C4244: '=' : conversion from 'uint64_t' to 'uint32_t', possible loss of data
ad9361.c(1826): warning C4244: '=' : conversion from 'uint64_t' to 'uint8_t', possible loss of data
ad9361.c(1831): warning C4244: '=' : conversion from 'uint64_t' to 'uint8_t', possible loss of data
ad9361.c(1835): warning C4244: '=' : conversion from 'uint64_t' to 'uint8_t', possible loss of data
ad9361.c(1841): warning C4244: '=' : conversion from 'uint64_t' to 'uint8_t', possible loss of data
ad9361.c(1848): warning C4244: '=' : conversion from 'uint64_t' to 'uint8_t', possible loss of data
ad9361.c(1977): warning C4244: '=' : conversion from 'unsigned long' to 'uint8_t', possible loss of data
ad9361.c(2417): warning C4018: '>' : signed/unsigned mismatch
ad9361.c(2495): warning C4018: '>' : signed/unsigned mismatch
ad9361.c(3432): warning C4018: '>=' : signed/unsigned mismatch
ad9361.c(3824): warning C4244: '=' : conversion from 'uint64_t' to 'uint32_t', possible loss of data
ad9361.c(3831): warning C4244: '=' : conversion from 'uint64_t' to 'uint32_t', possible loss of data
ad9361.c(4762): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s recation,
: see declaration of 'sscanf'
ad9361.c(4782): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead.
: see declaration of 'sscanf'
ad9361.c(4793): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead.
: see declaration of 'sscanf'
ad9361.c(4805): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead.
: see declaration of 'sscanf'
ad9361.c(5402): warning C4244: '=' : conversion from 'uint64_t' to 'uint32_t', possible loss of data
ad9361.c(5407): warning C4244: '=' : conversion from 'uint64_t' to 'uint32_t', possible loss of data
ad9361.c(5413): warning C4244: 'return' : conversion from 'uint64_t' to 'int32_t', possible loss of data
ad9361.c(5461): warning C4244: '=' : conversion from 'uint64_t' to 'uint32_t', possible loss of data
ad9361.c(5466): warning C4244: '=' : conversion from 'uint64_t' to 'uint32_t', possible loss of data
ad9361.c(5541): warning C4244: '=' : conversion from 'uint64_t' to 'uint32_t', possible loss of data
ad9361.c(5542): warning C4244: '=' : conversion from 'uint64_t' to 'uint32_t', possible loss of data
ad9361.c(5690): warning C4244: 'function' : conversion from 'int64_t' to 'int', possible loss of data
ad9361.c(5691): warning C4018: '>' : signed/unsigned mismatch

Outcomes