Fix or suppress compiler warnings in posix/conformance/interfaces
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest12 patches 18 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | posix/pthread_create/15-1: Supress warningtestcases/ | +1 | 1 reply | |
| 2/12 | posix/mq_(timed)send/5-1: Fix error reportingtestcases/ testcases/ | +5 | 3 replies | |
| 3/12 | posix/pthread_create/*: Remove unused variabletestcases/ testcases/ | +0 | 1 reply | |
| 4/12 | posix/conformance/interfaces: Fix unsued-variable for testfrmwtestcases/ testcases/ testcases/ +7 more | +15 | 2 replies | |
| 5/12 | posix/conformance/interfaces: Fix all unused variable warningstestcases/ testcases/ testcases/ +12 more | +16 | 3 replies | |
| 6/12 | posix/conformance/interfaces: Fix all unused function warningstestcases/ testcases/ testcases/ +5 more | +5 | 1 reply | |
| 7/12 | posix/pthread_key_create/2-1: Remove invalid part of testtestcases/ | +0 | 1 reply | |
| 8/12 | posix/asctime: Fix potentioal buffer overflowtestcases/ | +1 | 1 reply | |
| 9/12 | posix/conformance/interfaces/pthread_*_destroy: Suppress nonnull warningtestcases/ testcases/ | +6 | 1 reply | |
| 10/12 | posix/conformance/interfaces: Fix all sign-compare warningstestcases/ testcases/ testcases/ +6 more | +13 | 1 reply | |
| 11/12 | posix/conformance/interface/mmap/5-1: Remove invalid statictestcases/ | +1 | 1 reply | |
| 12/12 | posix/interface/conformance: Fix/supress all unused-result warningstestcases/ testcases/ testcases/ +40 more | +261 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [LTP] [Patch 00/12] Fix or suppress compiler warnings in posix/conformance/interfaces
Hi,
this set of patches removed all compiler warnings (at least fog gcc10), for all tests in openposix/conformance/interfaces.
I fixed some real issues in separate patches and a lot of similar problems in bulk patches.
For two categories of warnings I used pragma diagnostic:
- nonnull: Two nonnull warnings are triggered, where the test is used to explicitly test passing NULL. The only way to fix this warning, is to supress it.
- unused-result for write in signal handlers: There is no good way, to handle a failing write-call in a signal handler. Most of the time, the test is exited anyway, so supressing the warning seems like the best fix.
While these pragmas are gcc specific IIRC they also work for clang.
Joerg
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp