Skip to content
Snippets Groups Projects
  • Adam Borowski's avatar
    b2c565ec
    test: don't use a FILE pointer after fclose · b2c565ec
    Adam Borowski authored
    GCC 12 considers this wrong:
    ut_file.c:92:17: error: pointer ‘stream’ may be used after ‘fclose’
        [-Werror=use-after-free]
    In our case the pointer doesn't actually get dereferenced -- but then,
    knowing its no longer valid value doesn't help in debugging, thus
    there's no point in arguing with the compiler.
    b2c565ec
    History
    test: don't use a FILE pointer after fclose
    Adam Borowski authored
    GCC 12 considers this wrong:
    ut_file.c:92:17: error: pointer ‘stream’ may be used after ‘fclose’
        [-Werror=use-after-free]
    In our case the pointer doesn't actually get dereferenced -- but then,
    knowing its no longer valid value doesn't help in debugging, thus
    there's no point in arguing with the compiler.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.