Here the Mac warnings when compiling svn rev. 11627 (there are some warnings 
about wrong format and
tempnam usage in rexxutil besides the semaphore warnings):

    wu114215:oorexx_build rony$ export MACOSX_DEPLOYMENT_TARGET=10.9
    wu114215:oorexx_build rony$ cmake -DCMAKE_BUILD_TYPE=relWithDebInfo 
~/dev/oorexx_allura/main/trunk

    ... cut ...
    -- Looking for pwd.h
    *CMake Warning (dev) at 
/opt/local/share/cmake-3.12/Modules/CheckIncludeFile.cmake:70 (message):*
      Policy CMP0075 is not set: Include file check macros honor
      CMAKE_REQUIRED_LIBRARIES.  Run "cmake --help-policy CMP0075" for policy
      details.  Use the cmake_policy command to set the policy and suppress this
      warning.

      CMAKE_REQUIRED_LIBRARIES is set to:

        pthread

      For compatibility with CMake 3.11 and below this check is ignoring it.
    Call Stack (most recent call first):
      CMakeLists.txt:361 (check_include_file)
    This warning is for project developers.  Use -Wno-dev to suppress it.

    -- Looking for pwd.h - found
    ... cut ...

    -- Configuring done
    *CMake Warning (dev):*
      Policy CMP0042 is not set: MACOSX_RPATH is enabled by default.  Run "cmake
      --help-policy CMP0042" for policy details.  Use the cmake_policy command 
to
      set the policy and suppress this warning.

      MACOSX_RPATH is not specified for the following targets:

       orxclassic
       orxclassic1
       orxexits
       orxfunction
       orxinvocation
       orxmethod
       wpipe1
       wpipe2
       wpipe3

    This warning is for project developers.  Use -Wno-dev to suppress it.

    ... cut ...

    [ 27%] Building CXX object 
CMakeFiles/rexx.dir/interpreter/execution/RexxActivation.cpp.o
    
/Users/rony/dev/oorexx_allura/main/trunk/interpreter/execution/RexxActivation.cpp:2118:9:
 warning: expression result unused
          [-Wunused-value]
            (MethodClass *)executable;
            ^              ~~~~~~~~~~
    1 warning generated.

    ... cut ...

    Scanning dependencies of target hostemu
    [ 74%] Building CXX object 
CMakeFiles/hostemu.dir/extensions/hostemu/platform/unix/hostemu.cpp.o

    [ 75%] Building CXX object 
CMakeFiles/hostemu.dir/extensions/hostemu/cmdparse.cpp.o
    ..\..\cmdparse.cpp:1603:20: warning: ISO C++11 does not allow conversion 
from string literal to 'char *' [-Wwritable-strings]
          yyerror (YY_("syntax error"));
                       ^
    ..\..\cmdparse.cpp:1746:16: warning: ISO C++11 does not allow conversion 
from string literal to 'char *' [-Wwritable-strings]
      yyerror (YY_("memory exhausted"));
                   ^
    2 warnings generated.
    ... cut ...

    Scanning dependencies of target rexximage
    [ 89%] Building CXX object 
CMakeFiles/rexximage.dir/utilities/rexximage/rexximage.cpp.o
    [ 89%] Linking CXX executable bin/rexximage
    [ 89%] Built target rexximage
    Scanning dependencies of target rexxutil
    [ 89%] Building CXX object 
CMakeFiles/rexxutil.dir/extensions/rexxutil/platform/unix/rexxutil.cpp.o
    
/Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:1852: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:37:
 note:
          expanded from macro '__deprecated'
    #define __deprecated    __attribute__((deprecated))
                                           ^
    
/Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:1913: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:37:
 note:
          expanded from macro '__deprecated'
    #define __deprecated    __attribute__((deprecated))
                                           ^
    
/Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:1957: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:37:
 note:
          expanded from macro '__deprecated'
    #define __deprecated    __attribute__((deprecated))
                                           ^
    
/Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:2054: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:37:
 note:
          expanded from macro '__deprecated'
    #define __deprecated    __attribute__((deprecated))
                                           ^
    
/Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:2162: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:37:
 note:
          expanded from macro '__deprecated'
    #define __deprecated    __attribute__((deprecated))
                                           ^
    
/Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:2198: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:37:
 note:
          expanded from macro '__deprecated'
    #define __deprecated    __attribute__((deprecated))
                                           ^
    
*/Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:3159:23:
    warning: format specifies****type 'size_t' (aka 'unsigned long') but the 
argument has type 'off_t' (aka 'long long') [-Wformat]*
                          finfo->st_size);
                          ^~~~~~~~~~~~~~
    
*/Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:3171:27:
    warning: format specifies****type 'size_t' (aka 'unsigned long') but the 
argument has type 'off_t' (aka 'long long') [-Wformat]*
                              finfo->st_size);
                              ^~~~~~~~~~~~~~
    
*/Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:3182:27:
    warning: format specifies****type 'size_t' (aka 'unsigned long') but the 
argument has type 'off_t' (aka 'long long') [-Wformat]*
                              finfo->st_size);
                              ^~~~~~~~~~~~~~
    
*/Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:3693:15:
    warning: 'tempnam' is****deprecated: This function is provided for 
compatibility reasons only. Due to security concerns
    inherent in the design of****tempnam(3), it is highly recommended that you 
use mkstemp(3) instead. [-Wdeprecated-declarations]*
          array = tempnam(NULL,file); /* call system routine    */
                  ^
    
*/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdio.h:306:1:
    note:****'tempnam' has been explicitly marked deprecated here*
    __deprecated_msg("This function is provided for compatibility reasons only. 
 Due to security concerns inherent in the ...
    ^
    
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:180:48:
 note:
          expanded from macro '__deprecated_msg'
            #define __deprecated_msg(_msg) __attribute__((deprecated(_msg)))
                                                          ^
    
*/Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:3697:15:
    warning: 'tempnam' is****deprecated: This function is provided for 
compatibility reasons only. Due to security concerns
    inherent in the design of****tempnam(3),**it is highly recommended that you 
use mkstemp(3) instead. [-Wdeprecated-declarations]*
          array = tempnam("/",file); /* call system routine     */
                  ^
    
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdio.h:306:1:
 note:
          'tempnam' has been explicitly marked deprecated here
    __deprecated_msg("This function is provided for compatibility reasons only. 
 Due to security concerns inherent in the ...
    ^
    
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:180:48:
 note:
          expanded from macro '__deprecated_msg'
            #define __deprecated_msg(_msg) __attribute__((deprecated(_msg)))
                                                          ^
    
*/Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:3701:15:
    warning: 'tempnam' is****deprecated: This function is provided for 
compatibility reasons only. Due to security concerns
    inherent in the design of****tempnam(3), it is highly recommended that you 
use mkstemp(3) instead. [-Wdeprecated-declarations]*
          array = tempnam(NULL,file);/* call system routine     */
                  ^
    
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdio.h:306:1:
 note:
          'tempnam' has been explicitly marked deprecated here
    __deprecated_msg("This function is provided for compatibility reasons only. 
 Due to security concerns inherent in the ...
    ^
    
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:180:48:
 note:
          expanded from macro '__deprecated_msg'
            #define __deprecated_msg(_msg) __attribute__((deprecated(_msg)))
                                                          ^
    
*/Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:3708:13:
    warning: 'tempnam' is****deprecated: This function is provided for 
compatibility reasons only. Due to security concerns
    inherent in the design of****tempnam(3), it is highly recommended that you 
use mkstemp(3) instead. [-Wdeprecated-declarations]*
        array = tempnam(dir,file);/* call system routine        */
                ^
    
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdio.h:306:1:
 note:
          'tempnam' has been explicitly marked deprecated here
    __deprecated_msg("This function is provided for compatibility reasons only. 
 Due to security concerns inherent in the ...
    ^
    
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:180:48:
 note:
          expanded from macro '__deprecated_msg'
            #define __deprecated_msg(_msg) __attribute__((deprecated(_msg)))
                                                          ^
    
*/Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:5468:33:
    warning: 'tempnam' is****deprecated: This function is provided for 
compatibility reasons only. Due to security concerns
    inherent in the design of****tempnam(3), it is highly recommended that you 
use mkstemp(3) instead. [-Wdeprecated-declarations]*
                char *newFilename = tempnam(directory, NULL);
                                    ^
    
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdio.h:306:1:
 note:
          'tempnam' has been explicitly marked deprecated here
    __deprecated_msg("This function is provided for compatibility reasons only. 
 Due to security concerns inherent in the ...
    ^
    
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:180:48:
 note:
          expanded from macro '__deprecated_msg'
            #define __deprecated_msg(_msg) __attribute__((deprecated(_msg)))
                                                          ^
    14 warnings generated.
    ... cut ...

---rony

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

Reply via email to