]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: avoid gcc 4.7 warning about inlines
authorEric Blake <eblake@redhat.com>
Tue, 7 Feb 2012 03:06:37 +0000 (20:06 -0700)
committerEric Blake <eblake@redhat.com>
Tue, 7 Feb 2012 03:06:37 +0000 (20:06 -0700)
commit32b2e5a8b2bfd2d84c2f78aa54fc91ddc589a5fd
tree549eebaeed8122fca001bf937667753b74a5044f
parent10cc08ee32c2b142370c0532b3c6582433417c09
build: avoid gcc 4.7 warning about inlines

gcc 4.7 complains:

util/virhashcode.c:49:17: error: always_inline function might not be inlinable [-Werror=attributes]
util/virhashcode.c:35:17: error: always_inline function might not be inlinable [-Werror=attributes]

Normal 'inline' is a hint that the compiler may ignore; the fact
that the function is static is good enough.  We don't care if the
compiler decided not to inline after all.

* src/util/virhashcode.c (getblock, fmix): Relax attribute.
src/util/virhashcode.c