diff options
| author | Eli Schwartz <eschwartz@archlinux.org> | 2023-03-28 23:00:00 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-03-28 23:34:18 -0400 |
| commit | 5dc4fcae34ee3a5a3d47021f8ea8b2c5d3b14ea9 (patch) | |
| tree | 296fce680e19e23979f657f6a3db49626b401e95 /test cases/common/148 shared module resolving symbol in executable | |
| parent | 81c3c3808e611adeda204891f7f14228fc51efee (diff) | |
| download | meson-5dc4fcae34ee3a5a3d47021f8ea8b2c5d3b14ea9.tar.gz | |
test cases: make various things werror-safe
Allows getting closer to `./run_project_tests.py -- -Dwerror=true`.
- when argc and argv are not *both* used, there's a standard, compliant
mechanism to mark the variable as unused
- generated code should not build as -Werror
- more thoroughly comment out some commented code
Diffstat (limited to 'test cases/common/148 shared module resolving symbol in executable')
| -rw-r--r-- | test cases/common/148 shared module resolving symbol in executable/prog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test cases/common/148 shared module resolving symbol in executable/prog.c b/test cases/common/148 shared module resolving symbol in executable/prog.c index b2abcdb18..55ffee0d3 100644 --- a/test cases/common/148 shared module resolving symbol in executable/prog.c +++ b/test cases/common/148 shared module resolving symbol in executable/prog.c @@ -30,7 +30,7 @@ int main(int argc, char **argv) int expected, actual; fptr importedfunc; - if (argc=0) {}; // noop + (void)argc; // noop #ifdef _WIN32 HMODULE h = LoadLibraryA(argv[1]); |
