Re: Refactoring out old code, missing things for debug builds
- From: Sven Neumann <sven gimp org>
- To: Tristan Van Berkom <tristanvb openismus com>
- Cc: gtk-devel-list gnome org
- Subject: Re: Refactoring out old code, missing things for debug builds
- Date: Mon, 27 Sep 2010 20:45:12 +0200
On Mon, 2010-09-27 at 14:43 +0900, Tristan Van Berkom wrote:
> Guys,
> I'm just raising this because it's been the third time now
> that I have to fix people's refactor commits locally just to get
> through a build.
>
> Today it was:
> gdkvisual-x11.c: In function ‘_gdk_visual_init’:
> gdkvisual-x11.c:283: error: ‘GdkVisual’ has no member named ‘visual’
> gdkvisual-x11.c:283: error: ‘GdkVisual’ has no member named ‘visual’
>
> Due to some code inside #ifdef G_ENABLE_DEBUG
>
> Please; when doing mass commits to GTK+ that change API, please make
> sure you have configured with --enable-debug.
cppcheck is also quite good at catching such errors. It makes sure that
code in #ifdef branches will at least compile.
Regards,
Sven
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]