define HEIMDAL_WARN_UNUSED_RESULT_ATTRIBUTE
Always define HEIMDAL_WARN_UNUSED_RESULT_ATTRIBUTE even if attributes are not supported. Change-Id: Ibc2110d809d81f546723853038c69176075d6013
This commit is contained in:
@@ -302,6 +302,8 @@ int main(int argc, char **argv)
|
||||
fprintf(f, "#ifndef HEIMDAL_WARN_UNUSED_RESULT_ATTRIBUTE\n");
|
||||
fprintf(f, "#if __has_extension(warn_unused_result) || KRB5TYPES_REQUIRE_GNUC(3,3,0)\n");
|
||||
fprintf(f, "#define HEIMDAL_WARN_UNUSED_RESULT_ATTRIBUTE __attribute__((warn_unused_result))\n");
|
||||
fprintf(f, "#else\n");
|
||||
fprintf(f, "#define HEIMDAL_WARN_UNUSED_RESULT_ATTRIBUTE\n");
|
||||
fprintf(f, "#endif\n");
|
||||
fprintf(f, "#endif\n\n");
|
||||
|
||||
|
Reference in New Issue
Block a user