Skip to content

Commit

Permalink
Fix compiler warnings from GCC.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmlarsen committed Oct 2, 2023
1 parent 31c334e commit 5739174
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kernel/yosys.h
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,9 @@ inline std::string vstringf(const char *fmt, va_list ap)
#endif
}

inline std::string stringf(const char *fmt, ...) YS_ATTRIBUTE(format(printf, 1, 2))
std::string stringf(const char *fmt, ...) YS_ATTRIBUTE(format(printf, 1, 2));

inline std::string stringf(const char *fmt, ...)
{
std::string string;
va_list ap;
Expand Down

0 comments on commit 5739174

Please sign in to comment.