Is there a gcc
flag to signal a warning/error when I try to put a double
value into an int
variable? I currently have -Wall -Wextra -Werror
set but I still don't get warned when I (for instance) pass a double
to an int
parameter, even though I'm losing information.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…