Ticket #10402: 0003-udf-Move-constant-to-header.patch

File 0003-udf-Move-constant-to-header.patch, 1.6 KB (added by js, 6 years ago)
  • src/add-ons/kernel/file_systems/udf/UdfStructures.cpp

    From c62afc8bf1c3cbfbf7f4dd116bdb11275636648c Mon Sep 17 00:00:00 2001
    From: Jonathan Schleifer <js@webkeks.org>
    Date: Sun, 12 Jan 2014 00:17:17 +0100
    Subject: [PATCH 3/6] udf: Move constant to header.
    
    This way, it is a compile time constant and Clang does no longer
    complain about dynamic arrays of non-POD types.
    ---
     src/add-ons/kernel/file_systems/udf/UdfStructures.cpp | 2 --
     src/add-ons/kernel/file_systems/udf/UdfStructures.h   | 2 +-
     2 files changed, 1 insertion(+), 3 deletions(-)
    
    diff --git a/src/add-ons/kernel/file_systems/udf/UdfStructures.cpp b/src/add-ons/kernel/file_systems/udf/UdfStructures.cpp
    index 68e851d..175204d 100644
    a b implementation_use_descriptor::dump() const  
    685685// partition_descriptor
    686686//----------------------------------------------------------------------
    687687
    688 const uint8 kMaxPartitionDescriptors = 2;
    689 
    690688void
    691689partition_descriptor::dump() const
    692690{
  • src/add-ons/kernel/file_systems/udf/UdfStructures.h

    diff --git a/src/add-ons/kernel/file_systems/udf/UdfStructures.h b/src/add-ons/kernel/file_systems/udf/UdfStructures.h
    index 1f2634e..e93cb18 100644
    a b private:  
    935935/*! \brief Maximum number of partition descriptors to be found in volume
    936936    descriptor sequence, per UDF-2.50
    937937*/
    938 extern const uint8 kMaxPartitionDescriptors;
     938static const uint8 kMaxPartitionDescriptors = 2;
    939939#define UDF_MAX_PARTITION_MAPS 2
    940940#define UDF_MAX_PARTITION_MAP_SIZE 64
    941941