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

Fix compiler warning when compling NSFontAssetRequest.m in libs-gui #334

Closed
wants to merge 1 commit into from

Commits on Oct 11, 2023

  1. Fix compiler warning when compling NSFontAssetRequest.m in libs-gui

    Cast the result type of CALL_NON_NULL_BLOCK to void to satisfy the ? operator.
    
    ```
    NSFontAssetRequest.m:48:3: error: incompatible operand types ('int' and 'id')
        48 |   CALL_BLOCK(completionHandler, error);
            |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    C:/tools/msys64/ucrt64/include/GNUstepBase/GSBlocks.h:110:53: note: expanded from macro 'CALL_BLOCK'
        110 | #define CALL_BLOCK(block, args...) ((NULL != block) ? CALL_NON_NULL_BLOCK(block, args) : nil)
            |                                                     ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   ~~~
    1 error generated.
    ```
    qmfrederik committed Oct 11, 2023
    Configuration menu
    Copy the full SHA
    38b321a View commit details
    Browse the repository at this point in the history