diff --git a/include/fmt/format-inl.h b/include/fmt/format-inl.h index cc110198..539b1fd7 100644 --- a/include/fmt/format-inl.h +++ b/include/fmt/format-inl.h @@ -1477,10 +1477,10 @@ template struct span { }; template auto flockfile(F* f) -> decltype(_lock_file(f)) { - _lock_file(f); + return _lock_file(f); } template auto funlockfile(F* f) -> decltype(_unlock_file(f)) { - _unlock_file(f); + return _unlock_file(f); } #ifndef getc_unlocked