• Show log

    Commit

  • Hash : 68baeeeb
    Author : Sungyong Choi
    Date : 2025-08-12T15:51:07

    State: avoid GCC -Waddress by using constexpr null-check helper
    
    GCC with -Waddress warns that the static_assert comparing
    `handlers[0] != nullptr` is always true when MakeDirtyObjectHandlers()
    fully initializes the array. During constant evaluation, handlers[0]
    is replaced with the specific member function address
    (&State::syncActiveTextures), which can never be null, making the
    comparison tautological.
    
    This change replaces the direct `handlers[0] != nullptr` check with a
    constexpr helper that iterates over all handlers and verifies none are
    null. By comparing each element in a loop, the check still runs at
    compile time (constexpr), but avoids a direct “function address vs
    nullptr” pattern that triggers -Waddress.
    
    BUG: angleproject:438226513
    Change-Id: Iaa8441000f8b2aa28c44d17730ca223fd4d4595b
    Signed-off-by: Sungyong Choi <sywow.choi@samsung.com>
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/6845477
    Reviewed-by: Charlie Lao <cclao@google.com>
    Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
    Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
    Reviewed-by: Amirali Abdolrashidi <abdolrashidi@google.com>
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/angle.git
    Git SSH git@git.kmx.io:kc3-lang/angle.git
    Public access ? public
    Description

    A conformant OpenGL ES implementation for Windows, Mac, Linux, iOS and Android.

    Homepage

    Github

    Users
    thodg_m kc3_lang_org thodg_w www_kmx_io thodg thodg_l
    Tags