Wireshark-commits: [Wireshark-commits] master 746a265: Try to suppress MSVC++ unused parameter warn
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=746a265f9933f70bb8b8ded08d5c96e7d6cb0342
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
746a265 by Guy Harris (guy@xxxxxxxxxxxx):
Try to suppress MSVC++ unused parameter warnings.
I haven't found a way to with MSVC to mark parameters in the argument
list as unused. MSVC doesn't give warnings about them in C code, but
does appear to give them with C++ code. An answer to
http://stackoverflow.com/questions/3020584/avoid-warning-unreferenced-formal-parameter
suggests not giving the formal parameter a name in C++.
Have a macro UNUSED_PARAMETER(), which takes as an argument a variable
name, and expands to nothing in C++ and to the variable name followed by
_U_ in C, and use that for some unused parameters. If it works, we'll
use it for all of them.
Change-Id: I76107bed037f1f0d94615adb42234c9faf83b4db
Reviewed-on: https://code.wireshark.org/review/4016
Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
Actions performed:
from afb939b Make the count of bytes read from the file 64 bits.
adds 746a265 Try to suppress MSVC++ unused parameter warnings.
Summary of changes:
epan/uat.h | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)