projects
/
platform
/
upstream
/
qtdeclarative.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf98bd9
)
Get rid of compiler warning.
author
Lars Knoll
<lars.knoll@digia.com>
Tue, 16 Oct 2012 11:11:59 +0000
(13:11 +0200)
committer
Simon Hausmann
<simon.hausmann@digia.com>
Tue, 16 Oct 2012 14:01:32 +0000
(16:01 +0200)
Change-Id: I3b92819ac1bf8e4f98c266d4136ed05235e06faf
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
main.cpp
patch
|
blob
|
history
diff --git
a/main.cpp
b/main.cpp
index
c173f47
..
a5c148a
100644
(file)
--- a/
main.cpp
+++ b/
main.cpp
@@
-239,7
+239,8
@@
static void evaluate(QQmlJS::VM::Context *ctx, const QString &fileName, const QS
const size_t codeSize = 400 * getpagesize();
uchar *code = 0;
- posix_memalign((void**)&code, 16, codeSize);
+ if (posix_memalign((void**)&code, 16, codeSize))
+ assert(!"memalign failed");
assert(code);
assert(! (size_t(code) & 15));