Ticket #12770: 0022-file_systems-fix-gcc6-build.patch

File 0022-file_systems-fix-gcc6-build.patch, 2.2 KB (added by mt, 9 years ago)
  • src/add-ons/kernel/file_systems/netfs/client/Jamfile

    From b0002afb3300f2d29df1d52e9a33c03db4c8f126 Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Thu, 5 May 2016 18:40:18 +0900
    Subject: [PATCH 22/24] file_systems: fix gcc6 build
    
    ---
     src/add-ons/kernel/file_systems/netfs/client/Jamfile             | 5 +++++
     src/add-ons/kernel/file_systems/userlandfs/kernel_add_on/Jamfile | 5 +++++
     src/add-ons/kernel/file_systems/userlandfs/server/Jamfile        | 5 +++++
     3 files changed, 15 insertions(+)
    
    diff --git a/src/add-ons/kernel/file_systems/netfs/client/Jamfile b/src/add-ons/kernel/file_systems/netfs/client/Jamfile
    index 1cb1841..8940721 100644
    a b if $(NETFS_ADD_SERVER_LOCALHOST) {  
    2727    DEFINES += ADD_SERVER_LOCALHOST=$(NETFS_ADD_SERVER_LOCALHOST) ;
    2828}
    2929
     30# For GCC6
     31if $(TARGET_GCC_VERSION_$(TARGET_PACKAGING_ARCH)[1]) = 6 {
     32    SubDirC++Flags -Wno-nonnull-compare ;
     33}
     34
    3035Addon netfs
    3136    : DebugSupport.cpp
    3237#     Locker.cpp
  • src/add-ons/kernel/file_systems/userlandfs/kernel_add_on/Jamfile

    diff --git a/src/add-ons/kernel/file_systems/userlandfs/kernel_add_on/Jamfile b/src/add-ons/kernel/file_systems/userlandfs/kernel_add_on/Jamfile
    index cffdbab..84bb441 100644
    a b SEARCH_SOURCE += [ FDirName $(userlandFSTop) shared ] ;  
    1616
    1717DEFINES += DEBUG_APP="\\\"userlandfs\\\"" ;
    1818
     19# For GCC6
     20if $(TARGET_GCC_VERSION_$(TARGET_PACKAGING_ARCH)[1]) = 6 {
     21    SubDirC++Flags -Wno-nonnull-compare ;
     22}
     23
    1924KernelAddon userlandfs
    2025    : AreaSupport.cpp
    2126      Debug.cpp
  • src/add-ons/kernel/file_systems/userlandfs/server/Jamfile

    diff --git a/src/add-ons/kernel/file_systems/userlandfs/server/Jamfile b/src/add-ons/kernel/file_systems/userlandfs/server/Jamfile
    index 875756b..5197e43 100644
    a b DEFINES += USER=1 ;  
    1717DEFINES += DEBUG_APP="\\\"userlandfs_server\\\"" ;
    1818DEFINES += BUILDING_USERLAND_FS_SERVER=1 ;
    1919
     20# For GCC6
     21if $(TARGET_GCC_VERSION_$(TARGET_PACKAGING_ARCH)[1]) = 6 {
     22    SubDirC++Flags -Wno-nonnull-compare ;
     23}
     24
    2025Application userlandfs_server
    2126    :
    2227    AreaSupport.cpp