Skip to content
  • Nobuyoshi Nakada's avatar
    8ba2c310
    Fix extra semicolon outside of a function in `NO_SANITIZE` · 8ba2c310
    Nobuyoshi Nakada authored
    ```
    internal/sanitizers.h:57:26: error: ISO C does not allow extra ‘;’ outside of a function [-Wpedantic]
       57 |     COMPILER_WARNING_PUSH; \
          |                          ^
    ```
    
    and so many.
    
    Remove semicolons following pragma, and repeat the given declaration
    at the end to consume a semicolon following the macro call.  As many
    `NO_SANITIZE` calls including bigdecimal that is a gem have a trailing
    semicolon, it was not able to move the semicolon inside `NO_SANITIZE`.
    8ba2c310
    Fix extra semicolon outside of a function in `NO_SANITIZE`
    Nobuyoshi Nakada authored
    ```
    internal/sanitizers.h:57:26: error: ISO C does not allow extra ‘;’ outside of a function [-Wpedantic]
       57 |     COMPILER_WARNING_PUSH; \
          |                          ^
    ```
    
    and so many.
    
    Remove semicolons following pragma, and repeat the given declaration
    at the end to consume a semicolon following the macro call.  As many
    `NO_SANITIZE` calls including bigdecimal that is a gem have a trailing
    semicolon, it was not able to move the semicolon inside `NO_SANITIZE`.
Loading