Skip to content
Snippets Groups Projects
  • Colin Walters's avatar
    e627524a
    fdio: Avoid ?: syntax for fstatat_allow_noent() · e627524a
    Colin Walters authored
    `g-ir-scanner` is unaware of this GNUC extension and complains.
    Saw that while building ostree.
    
    While we're here, fix up a few other things:
    
     - Tell the compiler the stat buffer is unused (I didn't see
       a warning, just doing this on general principle)
     - Return from `glnx_throw_errno_prefix()` directly; we do
       preserve errno there, let's feel free to rely on it.
    e627524a
    History
    fdio: Avoid ?: syntax for fstatat_allow_noent()
    Colin Walters authored
    `g-ir-scanner` is unaware of this GNUC extension and complains.
    Saw that while building ostree.
    
    While we're here, fix up a few other things:
    
     - Tell the compiler the stat buffer is unused (I didn't see
       a warning, just doing this on general principle)
     - Return from `glnx_throw_errno_prefix()` directly; we do
       preserve errno there, let's feel free to rely on it.
glnx-fdio.h 11.16 KiB