g++ -Wall not warning about double-> int cast

$ gcc -Wconversion test.c

test.c: In function ‘main’:
test.c:3: warning: conversion to ‘int’ from ‘double’ may alter its value

Leave a Comment