Better HN
topnewbestaskshowjobs
Log inSign up

jholine

1 karma · joined Jan 17, 2023 (3y ago) · 1 submissions

Submissions

comment 3y ago · link · parent

Solved problem since ages ago.

error: format '%d' expects argument of type 'int', but argument 4 has type 'const char*' [-Werror=format=]

You only get into trouble when you use runtime format strings (like passing a user string as first argument to printf)