C++ (Qt)auto amount = CalcAmount(..);
int main(int argc, char *argv[]){ (void)argc; (void)argv; double d = 0.0; float f = d; (void)f; int i = 0; short s1 = i; (void)s1; long long l = 0; short s2 = l; (void)s2; return 0;}
Main.cpp: In function 'int main(int, char**)':Main.cpp:54:12: warning: conversion to 'float' from 'double' may alter its value [-Wconversion] float f = d; ^Main.cpp:58:13: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] short s1 = i; ^Main.cpp:62:13: warning: conversion to 'short int' from 'long long int' may alter its value [-Wconversion] short s2 = l; ^