renjiec / miniz

Automatically exported from code.google.com/p/miniz
0 stars 0 forks source link

g++ inlining warnings (with solution) #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Problem:
========
Compilation of miniz.c using 

    g++ -std=c++11 file.cc 

results in errors of the sort:

    miniz.c:3393:27: warning: always_inline function might not be inlinable [-Wattributes]

Solution:
=========

<   #define MZ_FORCEINLINE inline __attribute__((__always_inline__))

---
>   #define MZ_FORCEINLINE __attribute__((__always_inline__))

Original issue reported on code.google.com by hdeancl...@gmail.com on 24 May 2013 at 11:32

GoogleCodeExporter commented 8 years ago
More info (same problem) at https://bugzilla.mozilla.org/show_bug.cgi?id=798954 
and http://comments.gmane.org/gmane.linux.bluez.kernel/22080 .

Original comment by hdeancl...@gmail.com on 24 May 2013 at 11:34

GoogleCodeExporter commented 8 years ago
Thanks! I've merged this fix into v1.15.

Original comment by richge...@gmail.com on 13 Oct 2013 at 5:32