Skip to content

Commit

Permalink
define HEIMDAL_WARN_UNUSED_RESULT_ATTRIBUTE
Browse files Browse the repository at this point in the history
Always define HEIMDAL_WARN_UNUSED_RESULT_ATTRIBUTE even if attributes are
not supported.

Change-Id: Ibc2110d809d81f546723853038c69176075d6013
(cherry picked from commit d9bc256)
  • Loading branch information
jaltman committed Feb 5, 2014
1 parent 5806cbf commit 42c6373
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/bits.c
Expand Up @@ -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");

Expand Down

0 comments on commit 42c6373

Please sign in to comment.