mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 08:58:01 +00:00
521546a986
This fixes some of the IWYU and cppcheck lint warnings. And only on macOS (formerly OS X). Fixing these types of warnings on a broader set of platforms should be done but this is a baby step to making `make lint-all` have few, if any, warnings. This reduces the number of lines in the `make lint-all` output on macOS by over 500 lines.
10 lines
600 B
Text
10 lines
600 B
Text
// suppress all instances of varFuncNullUB: "Passing NULL after the last typed
|
|
// argument to a variadic function leads to undefined behaviour." That's
|
|
// because all the places we do this are valid and won't cause problems even
|
|
// on a ILP64 platform because we're careful about using NULL rather than 0.
|
|
varFuncNullUB
|
|
// Suppress the warning about unmatched suppressions. At the moment these
|
|
// warnings are emitted even when removing the suppression comment results in
|
|
// the warning being suppressed. In other words this unmatchedSuppression
|
|
// warnings are false positives.
|
|
unmatchedSuppression
|