Opened 21 months ago

Last modified 13 months ago

#67087 assigned defect

libomp: warnings

Reported by: mu578 (μῦ) Owned by: eborisch (Eric A. Borisch)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: cooljeanius (Eric Gallager)
Port: libomp

Description (last modified by ryandesign (Ryan Carsten Schmidt))

port 2.8.1 newly installed:

/opt/local/include/libomp/omp.h:53:9: warning: ISO C restricts enumerator values to range of 'int' (2147483648 is too large) [-Wpedantic]
        omp_sched_monotonic = 0x80000000
        ^                     ~~~~~~~~~~
/opt/local/include/libomp/omp.h:403:7: warning: ISO C restricts enumerator values to range of 'int' (18446744073709551615 is too large) [-Wpedantic]
      KMP_ALLOCATOR_MAX_HANDLE = UINTPTR_MAX
      ^                          ~~~~~~~~~~~
/opt/local/include/libomp/omp.h:419:7: warning: ISO C restricts enumerator values to range of 'int' (18446744073709551615 is too large) [-Wpedantic]
      KMP_MEMSPACE_MAX_HANDLE = UINTPTR_MAX
      ^                         ~~~~~~~~~~~
/opt/local/include/libomp/omp.h:463:39: warning: ISO C restricts enumerator values to range of 'int' (18446744073709551615 is too large) [-Wpedantic]
    typedef enum omp_event_handle_t { KMP_EVENT_MAX_HANDLE = UINTPTR_MAX } omp_event_handle_t;
                                      ^                      ~~~~~~~~~~~
/opt/local/include/libomp/omp.h:500:54: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
    extern void *llvm_omp_target_dynamic_shared_alloc();
                                                     ^
                                                      void

Change History (4)

comment:1 Changed 21 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Milestone: MacPorts Future
Owner: set to eborisch
Port: libomp added
Priority: HighNormal
Status: newassigned
Summary: Macports ventura clang-mp-15 -> openmp defectlibomp: warnings

comment:2 in reply to:  description Changed 21 months ago by mu578 (μῦ)

Replying to mu578:

Temporary hiding the cruft:

#	if _OPENMP
#		pragma GCC diagnostic push
#		pragma GCC diagnostic ignored "-Wpedantic"
#		include <omp.h>
#		pragma GCC diagnostic pop
#	endif
Version 0, edited 21 months ago by mu578 (μῦ) (next)

comment:3 Changed 21 months ago by eborisch (Eric A. Borisch)

Is there some additional context you could provide about where/when you are running into this?

comment:4 Changed 13 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.