Skip to content

Commit d89c9ab

Browse files
authored
Merge pull request #50 from jsakkine-intel/master
Fixes for various compilation issues
2 parents 6662022 + d53460f commit d89c9ab

File tree

4 files changed

+16
-9
lines changed

4 files changed

+16
-9
lines changed

external/vtune/linux/sdk/src/ittnotify/ittnotify_static.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ __itt_global _N_(_ittapi_global) = {
284284
__itt_collection_normal /* collection state */
285285
};
286286

287-
ITT_EXTERN_C __itt_global* _N_(get_ittapi_global)() { return &_N_(_ittapi_global); }
287+
ITT_EXTERN_C __itt_global* _N_(get_ittapi_global)(void) { return &_N_(_ittapi_global); }
288288
typedef void (__itt_api_init_t)(__itt_global*, __itt_group_id);
289289
typedef void (__itt_api_fini_t)(__itt_global*);
290290

@@ -829,12 +829,12 @@ static __itt_group_id __itt_get_groups(void)
829829

830830
if (group_str != NULL)
831831
{
832-
int len;
832+
unsigned int len;
833833
char gr[255];
834834
const char* chunk;
835-
while ((group_str = __itt_fsplit(group_str, ",; ", &chunk, &len)) != NULL)
835+
while ((group_str = __itt_fsplit(group_str, ",; ", &chunk, (int *)&len)) != NULL)
836836
{
837-
int min_len = min(len, (int)(sizeof(gr) - 1));
837+
unsigned int min_len = min(len, (int)(sizeof(gr) - 1));
838838
__itt_fstrcpyn(gr, sizeof(gr) - 1, chunk, min_len);
839839
gr[min_len] = 0;
840840

psw/uae_service/linux/Makefile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,18 @@ INCLUDE += -I$(LINUX_EXTERNAL_DIR)/epid \
5757
-I$(IPC_COMMON_PROTO_DIR) \
5858
-I$(LINUX_PSW_DIR)/ae/aesm_service/source
5959

60-
CXXFLAGS += -fPIC -Werror -g
60+
CXXFLAGS += -fPIC -Werror -DPROTOBUF_INLINE_NOT_IN_HEADERS=0
61+
PROTPBUF_CXXFLAGS := -fstack-protector -fPIC -Wall -Werror
62+
ifdef DEBUG
63+
PROTPBUF_CXXFLAGS += -ggdb -DDEBUG -UNDEBUG
64+
else
65+
PROTPBUF_CXXFLAGS += -O2 -UDEBUG -DNDEBUG
66+
endif
67+
ifeq ($(ARCH), x86)
68+
PROTPBUF_CXXFLAGS += -m32
69+
else
70+
PROTPBUF_CXXFLAGS += -m64
71+
endif
6172

6273
EXTERNAL_LIB += -lprotobuf
6374

psw/uae_service/uae_wrapper/inc/AEServices.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ struct PlainData
5656

5757
bool operator==(const PlainData& other) const {
5858
if (this == &other) return true;
59-
if (this == NULL || &other == NULL) return false;
6059

6160
if (length != other.length || errorCode != other.errorCode)
6261
return false;

sdk/cpprt/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ $(CPPRT): $(OBJS) prepare-libunwind libunwind
7979
$(CP) linux/libunwind/src/.libs/libunwind.a $(CPPRT)
8080
$(AR) rs $@ $(OBJS)
8181

82-
$(CPPRT): CC = gcc
83-
$(CPPRT): CXX = g++
84-
8582
.PHONY: libunwind
8683
libunwind:
8784
cd linux/libunwind/ && ( test -f Makefile || ./autogen-linux.sh ) && $(MAKE) -j5

0 commit comments

Comments
 (0)