Ticket #1072: 0001-gcc-deactivate-stringop-warning-needed-from-gcc-10.patch

File 0001-gcc-deactivate-stringop-warning-needed-from-gcc-10.patch, 862 bytes (added by pierrick.bouvier, 5 years ago)

Patch fixing compilation

  • CMakeLists.txt

    From aca3b467f56039fefce407280a1794ff4a3395b3 Mon Sep 17 00:00:00 2001
    From: Pierrick Bouvier <pierrick.bouvier@allegrodvt.com>
    Date: Thu, 4 Jun 2020 16:12:21 +0200
    Subject: [PATCH] gcc: deactivate stringop warning (needed from gcc-10)
    
    ---
     CMakeLists.txt | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/CMakeLists.txt b/CMakeLists.txt
    index eedbcd95..fa287a5c 100644
    a b endif() 
    7373# bb_enable_warnings( gcc -Wno-unused-variable )
    7474# bb_enable_warnings( gcc-4.8 warnings-as-errors -Wno-unused-variable )
    7575# for gcc 8.2:
    76 bb_enable_warnings( gcc warnings-as-errors -Wno-sign-compare -Wno-class-memaccess)
     76bb_enable_warnings( gcc warnings-as-errors -Wno-stringop-overflow -Wno-sign-compare -Wno-class-memaccess)
    7777
    7878if( XCODE )
    7979  bb_enable_warnings( clang warnings-as-errors