$ gcc -Wconversion test.c
test.c: In function ‘main’:
test.c:3: warning: conversion to ‘int’ from ‘double’ may alter its value
More Related Contents:
- g++ crashed when I tried to compile a program with ONE LINE
- Undefined reference to vtable
- C++ unordered_map using a custom class type as the key
- How to detect whether there is a specific member variable in class?
- g++ undefined reference to typeinfo
- GCC C++ Linker errors: Undefined reference to ‘vtable for XXX’, Undefined reference to ‘ClassName::ClassName()’
- Why vector::reference doesn’t return reference to bool?
- Omitting return statement in C++
- static_assert fails compilation even though template function is called nowhere
- g++ linking order dependency when linking c code to c++ code
- invalid conversion from `void*’ to `char*’ when using malloc?
- What is the purpose of using -pedantic in the GCC/G++ compiler?
- Which C++ standard is the default when compiling with g++?
- 😃 (and other Unicode characters) in identifiers not allowed by g++
- “not declared in this scope” error with templates and inheritance [duplicate]
- Why can’t g++ find iostream.h?
- constexpr initializing static member using static function
- C++ compile time error: expected identifier before numeric constant
- GCC equivalent of MS’s /bigobj
- Code runs perfect in g++ but not in Xcode – Cannot find File
- What’s the point of g++ -Wreorder?
- Linking to MSVC DLL from MinGW
- “undefined reference to” using ‘g++’ to compile a C++ program
- Vscode g++ it isn’t finding .cpp definition files
- Link error “undefined reference to `__gxx_personality_v0′” and g++ [duplicate]
- “to_string” isn’t a member of “std”?
- std::enable_if : parameter vs template parameter
- constexpr not working if the function is declared inside class scope
- Can you really have a function/method without a body but just a try/catch block?
- compiler cannot recognize my class in c++ – cyclic dependency