I’m trying to compile the example code and I’m getting some errors (probably escalated by the -Werror flag). I have tried with the code posted on this site as of 2013-04-08, CppUTest v3.3, and CppUTest master as of today’s date, and all give me the same error (using gcc 4.8.0):
src/CppUTest/MemoryLeakDetector.cpp: In member function ‘void MemoryLeakDetector::ConstructMemoryLeakReport(MemLeakPeriod)’: src/CppUTest/MemoryLeakDetector.cpp:429:76: error: conversion to ‘int’ from ‘long unsigned int’ may alter its value [-Werror=conversion] output_buffer_.setWriteLimit(SimpleStringBuffer::SIMPLE_STRING_BUFFER_LEN - MEM_LEAK_NORMAL_MALLOC_FOOTER_SIZE); ^
Has anyone else seen this? I’m running Arch Linux 64 bit.