Victor Zverovich
da439f2838
Suppress warning about missing noreturn attribute (#549)
Suppress warning about missing noreturn attribute
Adding `[[noreturn]]` to `report_unknown_type` suppresses the Clang/GCC `-Wmissing-noreturn` warning:
Clang outputs:
.../fmt/fmt/format.cc:294:74: warning:
function 'report_unknown_type' could be declared with
attribute 'noreturn' [-Wmissing-noreturn]
...code, const char *type) {
^
GCC outputs:
.../fmt/fmt/format.cc:294:74: warning: function might be candidate for
attribute 'noreturn' [-Wsuggest-attribute=noreturn]
...code, const char *type) {
^
Cherry-picked d16c4d.
2017-07-23 20:21:11 -07:00
..
2017-07-15 09:46:18 -04:00
2017-07-22 08:24:37 -07:00
2017-07-23 20:21:11 -07:00
2017-07-22 08:24:37 -07:00
2017-07-22 08:24:37 -07:00
2017-07-22 08:24:37 -07:00
2017-07-22 08:24:37 -07:00
2017-07-22 08:24:37 -07:00
2017-07-22 08:24:37 -07:00
2017-03-12 09:48:21 -07:00
2017-07-22 08:24:37 -07:00