Skip to content
Snippets Groups Projects
Commit 06342d86 authored by Botond Baranyi's avatar Botond Baranyi
Browse files

Changed C++ compiler version errors to warnings if the compiler version is 5 or newer (bug 564194)


Change-Id: Id6045fb10f6caae8fc5415fa8048a9c3bbe523df
Signed-off-by: default avatarBotond Baranyi <botond.baranyi@ericsson.com>
parent 22ca5dd5
No related branches found
No related tags found
No related merge requests found
......@@ -71,11 +71,11 @@ int main(void)
#else
"#if GCC_VERSION != %d\n"
#endif
"#error The version of " COMPILER_NAME_STRING " does not match the expected version (" COMPILER_NAME_STRING " %d.%d.%d)\n"
"#%s The version of " COMPILER_NAME_STRING " does not match the expected version (" COMPILER_NAME_STRING " %d.%d.%d)\n"
"#endif\n", compiler_major * 10000 + compiler_minor * 100,
/* Note that we don't use compiler_patchlevel when checking.
* This assumes that code is portable between GCC a.b.x and a.b.y */
compiler_major, compiler_minor, compiler_patchlevel);
compiler_major < 5 ? "error" : "warning", compiler_major, compiler_minor, compiler_patchlevel);
#elif defined(__SUNPRO_C)
printf("\n"
"#if __SUNPRO_CC != 0x%X\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment