We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bd766b commit 6b4297fCopy full SHA for 6b4297f
pybind11/setup_helpers.py
@@ -232,7 +232,8 @@ def has_flag(compiler, flag):
232
with tmp_chdir():
233
fname = "flagcheck.cpp"
234
with open(fname, "w") as f:
235
- f.write("int main (int argc, char **argv) { return 0; }")
+ # Don't trigger -Wunused-parameter.
236
+ f.write("int main (int, char **) { return 0; }")
237
238
try:
239
compiler.compile([fname], extra_postargs=[flag])
0 commit comments