Change how unused function parameters are handled#1247
Change how unused function parameters are handled#1247leekillough wants to merge 3 commits intosstsimulator:develfrom
Conversation
|
CLANG-FORMAT TEST - FAILED (on last commit): |
|
CMAKE-FORMAT TEST - PASSED |
|
CLANG-FORMAT TEST - PASSED |
|
CMAKE-FORMAT TEST - PASSED |
|
Status Flag 'Pre-Test Inspection' - - This Pull Request Requires Inspection... The code must be inspected by a member of the Team before Testing/Merging |
|
CLANG-FORMAT TEST - FAILED (on last commit): |
|
CMAKE-FORMAT TEST - PASSED |
|
Status Flag 'Pre-Test Inspection' - - This Pull Request Requires Inspection... The code must be inspected by a member of the Team before Testing/Merging |
This changes the
UNUSED()macro to be used within the body of a function rather than inside its declarationUNUSED()macro added attributes to parameters; the newUNUSED()macro casts a parameter tovoidto hide the unused parameter warningUNUSED()macro was used in some function declarations without definitions, where it had no effect; these have been removedUNUSED()macro appears at the beginning of a function definition and "declares" that a parameter is unused-Werror=unused-parameteris added to builds so that unused parameters not marked withUNUSED()are errors rather than warningsrng.hwhich was not markedUNUSED()UNUSED()in them, this was all automatically done by a script (attached), which can be run on other codes-in-progress