projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60c328d
)
mesa: silence warning from gcc 4.4.1
author
Brian Paul
<brianp@vmware.com>
Thu, 5 Nov 2009 00:42:01 +0000
(17:42 -0700)
committer
Brian Paul
<brianp@vmware.com>
Thu, 5 Nov 2009 00:42:01 +0000
(17:42 -0700)
src/mesa/main/imports.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/imports.c
b/src/mesa/main/imports.c
index 91d8d156b8f6d411580e89960c28526990be8156..46ffb929b6cd81c8c96f2c782847a3fdb05a1841 100644
(file)
--- a/
src/mesa/main/imports.c
+++ b/
src/mesa/main/imports.c
@@
-108,8
+108,8
@@
_mesa_align_malloc(size_t bytes, unsigned long alignment)
{
#if defined(HAVE_POSIX_MEMALIGN)
void *mem;
-
- (void)
posix_memalign(& mem, alignment, bytes)
;
+ int err = posix_memalign(& mem, alignment, bytes);
+ (void)
err
;
return mem;
#elif defined(_WIN32) && defined(_MSC_VER)
return _aligned_malloc(bytes, alignment);