Ticket #3435: mc-cleanup-clang-warnings-01.patch

File mc-cleanup-clang-warnings-01.patch, 574 bytes (added by and, 10 years ago)
  • lib/global.h

    fix clang 3.6 compiler warnings
    
    patch 01: -Wundef
    patch 02: -Wunused-function
    patch 03: -Wnon-literal-null-conversion
    patch 04: -Wmissing-field-initializers
    patch 05: -Wabsolute-value
    patch 06: -Wtautological-pointer-compare
    patch 07: -Wformat
    
    ../../lib/vfs/vfs.h:44:6: error: 'O_NDELAY' is not defined, evaluates to 0 [-Wundef]
    
    Signed-off-by: Andreas Mohr <and@gmx.li>
    
    a b  
    66 
    77#ifndef MC_GLOBAL_H 
    88#define MC_GLOBAL_H 
     9#ifdef HAVE_FCNTL_H 
     10#include <fcntl.h> 
     11#endif 
    912 
    1013#if defined(HAVE_STRING_H) 
    1114#include <string.h>