Skip to content
  • Sergei Trofimovich's avatar
    testsuite: disable gcc's warnings about casts of incompatible prototypes in UNREG · fcdd58d2
    Sergei Trofimovich authored
    
    
    Haskell's 'foreign import' declaraion does not have a way
    to extress exact C prototypes (it ignores 'const' modifiers, exact pointer
    types, etc.) which leads to warnings when C backend generates calls to such
    functions:
    
        /tmp/ghc32698_0/ghc32698_10.hc:52:5:
             warning: conflicting types for built-in function ‘strlen’ [enabled by default]
             EF_(strlen);
                 ^
    
    Patch disables builtin functions for UNREG build
    to workaround test failures due to stderr mismatch.
    
    Fixes the following test failures:
        TEST="safePkg01 T5423 T7574 T3736"
    
    Signed-off-by: default avatarSergei Trofimovich <slyfox@gentoo.org>
    fcdd58d2