Skip to content
  • Ben Gamari's avatar
    rts: Fix "variable set but not used" warning · 74c70166
    Ben Gamari authored and Ben Gamari's avatar Ben Gamari committed
    gcc complains about this while building with Hadrian,
    ```
    rts/RetainerProfile.c: In function ‘computeRetainerSet’:
    
    rts/RetainerProfile.c:1758:18: error:
         error: variable ‘rtl’ set but not used
    [-Werror=unused-but-set-variable]
             RetainerSet *rtl;
                          ^~~
         |
    1758 |     RetainerSet *rtl;
         |                  ^
    ```
    
    Reviewers: austin, erikd, simonmar, Phyx
    
    Reviewed By: Phyx
    
    Subscribers: Phyx, rwbarton, thomie
    
    Differential Revision: https://phabricator.haskell.org/D3801
    74c70166