When creating the ooRexx interpreter from trunk (r11856) on MacOS the following 
(not yet reported)
warnings get generated:

    wu114184:oorexx_build rony$ make

    ... cut ...

    [  4%] Building CXX object 
CMakeFiles/rexxapi.dir/rexxapi/client/LocalQueueManager.cpp.o
    
/Users/rony/dev/oorexx_allura/main/trunk/rexxapi/client/LocalQueueManager.cpp:571:14:
 warning: comparison of two values with different
          enumeration types in switch statement ('ServiceReturn' and 
'ErrorCode') [-Wenum-compare-switch]
            case BAD_WAIT_FLAG:
                 ^~~~~~~~~~~~~
    
/Users/rony/dev/oorexx_allura/main/trunk/rexxapi/client/LocalQueueManager.cpp:568:14:
 warning: comparison of two values with different
          enumeration types in switch statement ('ServiceReturn' and 
'ErrorCode') [-Wenum-compare-switch]
            case BAD_FIFO_LIFO:
                 ^~~~~~~~~~~~~
    
/Users/rony/dev/oorexx_allura/main/trunk/rexxapi/client/LocalQueueManager.cpp:565:14:
 warning: comparison of two values with different
          enumeration types in switch statement ('ServiceReturn' and 
'ErrorCode') [-Wenum-compare-switch]
            case INVALID_QUEUE_NAME:
                 ^~~~~~~~~~~~~~~~~~
    3 warnings generated.
    [  4%] Building CXX object 
CMakeFiles/rexxapi.dir/rexxapi/client/LocalRegistrationManager.cpp.o



    ... cut ...



    [ 68%] Building CXX object 
CMakeFiles/rexx.dir/interpreter/platform/unix/SysRexxUtil.cpp.o
    
/Users/rony/dev/oorexx_allura/main/trunk/interpreter/platform/unix/SysRexxUtil.cpp:446:57:
 warning: format specifies type 'intmax_t'
          (aka 'long') but the argument has type 'off_t' (aka 'long long') 
[-Wformat]
            snprintf(fileAttr, sizeof(fileAttr), "%20jd  ", finfo.st_size);
                                                  ~~~~~     ^~~~~~~~~~~~~
                                                  %20lld
    
/Users/rony/dev/oorexx_allura/main/trunk/interpreter/platform/unix/SysRexxUtil.cpp:454:57:
 warning: format specifies type 'intmax_t'
          (aka 'long') but the argument has type 'off_t' (aka 'long long') 
[-Wformat]
            snprintf(fileAttr, sizeof(fileAttr), "%10jd  ", finfo.st_size);
                                                  ~~~~~     ^~~~~~~~~~~~~
                                                  %10lld
    
/Users/rony/dev/oorexx_allura/main/trunk/interpreter/platform/unix/SysRexxUtil.cpp:664:14:
 warning: 'sem_init' is deprecated
          [-Wdeprecated-declarations]
            rc = sem_init(semdata->handle, 0, 0);
                 ^
    
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/semaphore.h:55:42:
 note: 
          'sem_init' has been explicitly marked deprecated here
    int sem_init(sem_t *, int, unsigned int) __deprecated;
                                             ^
    
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:176:40:
 note: 
          expanded from macro '__deprecated'
    #define __deprecated    __attribute__((deprecated))
                                           ^
    
/Users/rony/dev/oorexx_allura/main/trunk/interpreter/platform/unix/SysRexxUtil.cpp:729:5:
 warning: 'sem_init' is deprecated
          [-Wdeprecated-declarations]
        sem_init(semdata->handle, 1, 0);
        ^
    
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/semaphore.h:55:42:
 note: 
          'sem_init' has been explicitly marked deprecated here
    int sem_init(sem_t *, int, unsigned int) __deprecated;
                                             ^
    
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:176:40:
 note: 
          expanded from macro '__deprecated'
    #define __deprecated    __attribute__((deprecated))
                                           ^
    
/Users/rony/dev/oorexx_allura/main/trunk/interpreter/platform/unix/SysRexxUtil.cpp:775:13:
 warning: 'sem_destroy' is deprecated
          [-Wdeprecated-declarations]
            if (sem_destroy(semdata->handle))
                ^
    
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/semaphore.h:53:26:
 note: 
          'sem_destroy' has been explicitly marked deprecated here
    int sem_destroy(sem_t *) __deprecated;
                             ^
    
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:176:40:
 note: 
          expanded from macro '__deprecated'
    #define __deprecated    __attribute__((deprecated))
                                           ^
    
/Users/rony/dev/oorexx_allura/main/trunk/interpreter/platform/unix/SysRexxUtil.cpp:889:14:
 warning: 'sem_init' is deprecated
          [-Wdeprecated-declarations]
            rc = sem_init(semdata->handle, 0, 0);
                 ^
    
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/semaphore.h:55:42:
 note: 
          'sem_init' has been explicitly marked deprecated here
    int sem_init(sem_t *, int, unsigned int) __deprecated;
                                             ^
    
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:176:40:
 note: 
          expanded from macro '__deprecated'
    #define __deprecated    __attribute__((deprecated))
                                           ^
    
/Users/rony/dev/oorexx_allura/main/trunk/interpreter/platform/unix/SysRexxUtil.cpp:1010:10:
 warning: 'sem_getvalue' is deprecated
          [-Wdeprecated-declarations]
        rc = sem_getvalue(semdata->handle, &val);
             ^
    
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/semaphore.h:54:56:
 note: 
          'sem_getvalue' has been explicitly marked deprecated here
    int sem_getvalue(sem_t * __restrict, int * __restrict) __deprecated;
                                                           ^
    
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:176:40:
 note: 
          expanded from macro '__deprecated'
    #define __deprecated    __attribute__((deprecated))
                                           ^
    
/Users/rony/dev/oorexx_allura/main/trunk/interpreter/platform/unix/SysRexxUtil.cpp:1052:13:
 warning: 'sem_destroy' is deprecated
          [-Wdeprecated-declarations]
            if (sem_destroy(semdata->handle))
                ^
    
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/semaphore.h:53:26:
 note: 
          'sem_destroy' has been explicitly marked deprecated here
    int sem_destroy(sem_t *) __deprecated;
                             ^
    
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:176:40:
 note: 
          expanded from macro '__deprecated'
    #define __deprecated    __attribute__((deprecated))
                                           ^
    8 warnings generated.

---rony

_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to