projects
/
platform
/
core
/
uifw
/
dali-adaptor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "[Tizen] Added 'make clean' on each profile build."
[platform/core/uifw/dali-adaptor.git]
/
adaptors
/
common
/
shared-file.cpp
diff --git
a/adaptors/common/shared-file.cpp
b/adaptors/common/shared-file.cpp
index
9504246
..
806cc5a
100644
(file)
--- a/
adaptors/common/shared-file.cpp
+++ b/
adaptors/common/shared-file.cpp
@@
-97,19
+97,23
@@
bool SharedFile::OpenFile(const char* filename, int size, bool isSystem)
mode |= S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH;
}
mode |= S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH;
}
- mFileDescriptor = shm_open( filename, O_RD
WR
, mode );
+ mFileDescriptor = shm_open( filename, O_RD
ONLY
, mode );
if( mFileDescriptor >= 0 )
{
mFilename = filename;
mSize = size;
if( mFileDescriptor >= 0 )
{
mFilename = filename;
mSize = size;
- mAddress = mmap( NULL, mSize, PROT_READ
| PROT_WRITE
, MAP_SHARED, mFileDescriptor, 0 );
+ mAddress = mmap( NULL, mSize, PROT_READ, MAP_SHARED, mFileDescriptor, 0 );
+// MAP_FAILED is a macro with C cast
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wold-style-cast"
if( mAddress != MAP_FAILED )
{
opened = true;
}
if( mAddress != MAP_FAILED )
{
opened = true;
}
+#pragma GCC diagnostic pop
}
return opened;
}
}
return opened;
}