diff --git a/CODING b/CODING index fe64431579..5d62dbb0b0 100644 --- a/CODING +++ b/CODING @@ -296,4 +296,8 @@ libadmin/samples/rxstat_query_process.c : all : util_RPCStatsStateGet types libadmin/test/client.c : all : util_RPCStatsStateGet types ubik/ubikclient.c : strict-protos : ubik_Call volser/vol-dump.c : format : afs_sfsize_t - +rxkad/ticket5.c : format-truncation : inside included file v5der.c in the + function _heim_time2generalizedtime, the + two snprintf calls raise + format-truncation warnings due to the + arithmetic on tm_year and tm_mon fields \ No newline at end of file diff --git a/src/rxkad/ticket5.c b/src/rxkad/ticket5.c index 1a59d4fcd1..8c750d3ce7 100644 --- a/src/rxkad/ticket5.c +++ b/src/rxkad/ticket5.c @@ -80,7 +80,16 @@ #include "v5gen-rewrite.h" #include "v5gen.h" #include "der.h" + +#if defined(IGNORE_SOME_GCC_WARNINGS) && !defined(_clang) && __GNUC__ >= 7 +# pragma GCC diagnostic push +# pragma GCC diagnostic warning "-Wformat-truncation" +#endif #include "v5der.c" +#if defined(IGNORE_SOME_GCC_WARNINGS) && !defined(__clang__) && __GNUC__ >= 7 +# pragma GCC diagnostic pop +#endif + #include "v5gen.c" #define RFC3961_NO_ENUMS