]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
limex_dump: silence gcc large alignment warning
authorJustin Viiret <justin.viiret@intel.com>
Thu, 25 Aug 2016 03:25:01 +0000 (13:25 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Fri, 28 Oct 2016 03:43:34 +0000 (14:43 +1100)
Passing mask by const ref silences the warning: "The ABI for passing
parameters with 32-byte alignment has changed in GCC 4.6".

src/nfa/limex_dump.cpp

index c52adc4674ebf5a9415bf1f88999ebff5d711495..8b6b7015956178199fa5e2a0cf7085a61688181a 100644 (file)
@@ -82,7 +82,7 @@ void dumpMask(FILE *f, const char *name, const u8 *mask, u32 mask_bits) {
 
 template<typename mask_t>
 static
-u32 rank_in_mask(mask_t mask, u32 bit) {
+u32 rank_in_mask(const mask_t &mask, u32 bit) {
     assert(bit < 8 * sizeof(mask));
 
     u32 chunks[sizeof(mask)/sizeof(u32)];