Menu

#7 Make: Conversion warnings with -Wconversion

open
nobody
None
5
2012-03-23
2012-03-23
Anonymous
No

sslscan-1.8.2$ make CFLAGS="-Wall -Wextra -Wconversion --stack-protector-all -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,-z,noexecheap -fPIE"
gcc -g -Wall -lssl -o sslscan sslscan.c -Wall -Wextra -Wconversion --stack-protector-all -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,-z,noexecheap -fPIE
sslscan.c: In function ‘readLine’:
sslscan.c:227: warning: conversion to ‘int’ from ‘size_t’ may change the sign of the result
sslscan.c: In function ‘password_callback’:
sslscan.c:311: warning: conversion to ‘size_t’ from ‘int’ may change the sign of the result
sslscan.c:313: warning: conversion to ‘int’ from ‘size_t’ may change the sign of the result
sslscan.c:309: warning: unused parameter ‘rwflag’
sslscan.c: In function ‘testCipher’:
sslscan.c:506: warning: conversion to ‘int’ from ‘size_t’ may change the sign of the result
sslscan.c: In function ‘testHost’:
sslscan.c:1134: warning: conversion to ‘sa_family_t’ from ‘int’ may alter its value
sslscan.c:1135: warning: conversion to ‘size_t’ from ‘int’ may change the sign of the result
sslscan.c:1136: warning: conversion to ‘uint16_t’ from ‘int’ may alter its value
sslscan.c: In function ‘main’:
sslscan.c:1328: warning: conversion to ‘int’ from ‘size_t’ may change the sign of the result
sslscan-1.8.2$

Discussion


Log in to post a comment.