Wireshark-commits: [Wireshark-commits] master 3653e23: Convert enum increment into int increment
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Mon, 19 Nov 2018 21:31:21 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=3653e230974c351fe8f24ca6f4161b5e176b28e6
Submitter: "Guy Harris <guy@xxxxxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

3653e23 by Jaap Keuter (jaap.keuter@xxxxxxxxx):

    Convert enum increment into int increment
    
    Using an enum type with the increment operator causes the following
    error to be emitted by newer compilers:
    "increment of enumeration value is invalid in C++ [-Werror=c++-compat]"
    Numerical operations seem only allowed when taking their integer value.
    Convert the loops involved to use integer and cast back to
    wtap_compression_type when needed.
    
    Change-Id: Ic96a6350c7d4db9ba2ba99df8b922649924c0e7a
    Signed-off-by: Jaap Keuter <jaap.keuter@xxxxxxxxx>
    Reviewed-on: https://code.wireshark.org/review/30722
    Petri-Dish: Guy Harris <guy@xxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  8788c99   rpm-setup.sh: We no longer use FOP or AsciiDoc.
     add  3653e23   Convert enum increment into int increment


Summary of changes:
 wiretap/file_access.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)