Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-19986

Avoid "typedef unsigned int bool"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • Lustre 2.18.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      Avoid "typedef unsigned int bool"

      lutf_global_wrap.c:3238:22: error: ‘bool’ cannot be defined via ‘typedef’
       3238 | typedef unsigned int bool;
            |                      ^~~~
      lutf_global_wrap.c:3238:22: note: ‘bool’ is a keyword with ‘-std=c23’ onwards
      lutf_global_wrap.c:3238:1: warning: useless type name in empty declaration
       3238 | typedef unsigned int bool;
            | ^~~~~~~
      

      Instead include the header to ensure bool is available:
      #include <stdbool.h>

      Attachments

        Activity

          People

            stancheff Shaun Tancheff
            stancheff Shaun Tancheff
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: