Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ef6ac73

Browse files
committed
small fixes for modern compilers
1 parent 3a7f241 commit ef6ac73

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ endif
6565

6666
# compiler settings
6767
PKG_CONFIG = pkg-config
68-
override CPPFLAGS += $(shell $(PKG_CONFIG) --cflags healpix_cxx)
69-
SHLIB_LINK += $(shell $(PKG_CONFIG) --libs healpix_cxx)
70-
LINK.shared = g++ -shared
68+
override CPPFLAGS += $(shell $(PKG_CONFIG) --cflags healpix_cxx ) -fopenmp
69+
SHLIB_LINK = $(shell $(PKG_CONFIG) --libs healpix_cxx) -fopenmp
70+
LINK.shared = $(CXX) -shared
7171

7272
# healpix_bare.c isn't ours so we refrain from fixing the warnings in there
7373
healpix_bare/healpix_bare.o : healpix_bare/healpix_bare.c
74-
$(COMPILE.c) -Wno-declaration-after-statement -o $@ $^
74+
$(COMPILE.c) -fopenmp -Wno-declaration-after-statement -o $@ $^
7575

7676
# experimental for spoint3
7777
pg_version := $(word 2,$(shell $(PG_CONFIG) --version))

process_moc.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <cxxabi.h> /* __cxa_current_exception_type */
1616

1717
#include <healpix_base.h>
18+
#include <healpix_cxx/error_handling.h>
1819

1920
#include "pgs_process_moc.h"
2021
#include "pgs_util.h"
@@ -575,7 +576,7 @@ create_moc_release_context(void* moc_in_context, Smoc* moc,
575576
// the above level-end values stay correct.
576577

577578
// process the interval pages
578-
hpint64 order_log = 0;
579+
//hpint64 order_log = 0;
579580
rintv_iter i(moc_data, m.layout[0].level_end);
580581
rnode_iter n(moc_data, m.layout[1].level_end);
581582
// default for "empty" root node, points past the intervals:
@@ -590,8 +591,8 @@ create_moc_release_context(void* moc_in_context, Smoc* moc,
590591
{
591592
first = r->first;
592593
last = r->second;
593-
order_log |= first;
594-
order_log |= last;
594+
//order_log |= first;
595+
//order_log |= last;
595596
area += last - first;
596597
if (i.page_ready())
597598
{

0 commit comments

Comments
 (0)