Changeset 261797 in webkit


Ignore:
Timestamp:
May 17, 2020 10:15:07 PM (4 years ago)
Author:
Lauro Moura
Message:

[JSC] Silence unused-but-set-parameter warnings for older compilers
https://bugs.webkit.org/show_bug.cgi?id=212006

Reviewed by Mark Lam.

GCC up to 9.x will emit unused-but-set-parameter for the sources
parameter when NumberOfRegisters is zero (the if block is eliminated)
and for destinations when also ASSERT_ENABLED is false.

  • jit/CCallHelpers.h:

(JSC::CCallHelpers::setupStubArgs):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r261780 r261797  
     12020-05-17  Lauro Moura  <lmoura@igalia.com>
     2
     3        [JSC] Silence unused-but-set-parameter warnings for older compilers
     4        https://bugs.webkit.org/show_bug.cgi?id=212006
     5
     6        Reviewed by Mark Lam.
     7
     8        GCC up to 9.x will emit unused-but-set-parameter for the sources
     9        parameter when NumberOfRegisters is zero (the if block is eliminated)
     10        and for destinations when also ASSERT_ENABLED is false.
     11
     12        * jit/CCallHelpers.h:
     13        (JSC::CCallHelpers::setupStubArgs):
     14
    1152020-05-16  Yusuke Suzuki  <ysuzuki@apple.com>
    216
  • trunk/Source/JavaScriptCore/jit/CCallHelpers.h

    r261754 r261797  
    106106                    pairs.append(std::make_pair(sources[i], destinations[i]));
    107107            }
     108        } else {
     109            // Silence some older compilers (GCC up to 9.X) about unused but set parameters.
     110            UNUSED_PARAM(sources);
     111            UNUSED_PARAM(destinations);
    108112        }
    109113
Note: See TracChangeset for help on using the changeset viewer.