summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9bdb4be)
gcc6 introduceed a new warning switched with -Wmisleading-identation. This caused to generate a compilation warning for if statement misleadingly indented, which caused HAVE_ASPRINTF to be defined as 0. Adding newline after an if statement fixes the problem.
"#include <stdio.h>\n"
"static char *func(int x) {"
" char *p;\n"
"#include <stdio.h>\n"
"static char *func(int x) {"
" char *p;\n"
- " if (asprintf(&p, \"%u\", x) == -1) p = NULL;"
+ " if (asprintf(&p, \"%u\", x) == -1) \n"
+ " p = NULL;\n"
" return p;\n"
"}" },
{ "HAVE_ATTRIBUTE_COLD", DEFINES_FUNC, NULL, NULL,
" return p;\n"
"}" },
{ "HAVE_ATTRIBUTE_COLD", DEFINES_FUNC, NULL, NULL,