Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2017-08-07 10:46:31 -0400
committerAlexander Kurtakov2017-08-07 10:46:31 -0400
commit5ddcdea272ca450a04f93e6d8ce786fb4986bfd8 (patch)
tree97831e6bf7232ec42d019eac4cb097dce6e43106 /features
parent8177dda424e3907d2af078e4aa3dbd36f5ef75c2 (diff)
downloadrt.equinox.framework-5ddcdea272ca450a04f93e6d8ce786fb4986bfd8.tar.gz
rt.equinox.framework-5ddcdea272ca450a04f93e6d8ce786fb4986bfd8.tar.xz
rt.equinox.framework-5ddcdea272ca450a04f93e6d8ce786fb4986bfd8.zip
Bug 520630 - Fix warnings catched by CDT
CDT shows few warnings about missing parenthesis. Add them to reduce warnings. Change-Id: I26fa647c9c96ae741e4582f71c9db674f3056df2 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'features')
-rw-r--r--features/org.eclipse.equinox.executable.feature/library/eclipse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/features/org.eclipse.equinox.executable.feature/library/eclipse.c b/features/org.eclipse.equinox.executable.feature/library/eclipse.c
index fa7db0cfc..0855afd0c 100644
--- a/features/org.eclipse.equinox.executable.feature/library/eclipse.c
+++ b/features/org.eclipse.equinox.executable.feature/library/eclipse.c
@@ -1378,7 +1378,7 @@ static _TCHAR* findSplash(_TCHAR* splashArg) {
/*directory, look for splash.bmp*/
ch = malloc( (length + 12) * sizeof(_TCHAR));
_stprintf( ch, _T_ECLIPSE("%s%c%s"), splashArg, dirSeparator, _T_ECLIPSE("splash.bmp") );
- if (_tstat(ch, &stats) == 0 && stats.st_mode & S_IFREG) {
+ if (_tstat(ch, &stats) == 0 && (stats.st_mode & S_IFREG)) {
free(splashArg);
return ch;
}
@@ -1834,7 +1834,7 @@ static int processEEProps(_TCHAR* eeFile)
else {
c1 = malloc( (_tcslen(argv[index]) - _tcslen(option->name) + 1) *sizeof(_TCHAR));
_tcscpy(c1, argv[index] + _tcslen(option->name));
- if (option->flag & ADJUST_PATH && option->flag & VALUE_IS_LIST) {
+ if ((option->flag & ADJUST_PATH) && (option->flag & VALUE_IS_LIST)) {
c2 = checkPathList(c1, eeDir, 1);
free(c1);
c1 = c2;

Back to the top