Is it a warning or an error? What is the compiler (Code::Blocks is not a compiler) and the flags?
Your code should not produce an error and I don't see any reason to warn about synthesized default...