Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

util: fix build with CFLAGS="-g" #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Sep 4, 2024

  1. util: fix build with CFLAGS="-g"

    The build process fails with debug symbols enabled. It appears that
    `CFLAGS=-g` influences the compiler's inlining decisions, leading to a
    situation where the `is_str_empty` function is not inlined, and the
    linker is searching for an out-of-line definition that isn’t present.
    The most straightforward fix is to declare this function
    `static inline`.
    
    Signed-off-by: Wolfgang Frisch <[email protected]>
    wfrisch committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    865f393 View commit details
    Browse the repository at this point in the history