suzhe / google-gadgets-for-linux

Automatically exported from code.google.com/p/google-gadgets-for-linux
Apache License 2.0
0 stars 0 forks source link

Build broken from trunk. #361

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Checkout trunk, r1291
2. Install dependencies, run cmake as described in HowToBuild
3. `make -j2`. 

What is the expected output? What do you see instead?
No errors, an executable produced (ggl-gtk).

What version of the product are you using? On what operating system?
r1291, debian squeeze/sid. x86_64 host. gcc 4.4.3

Please provide any additional information below.
Error messages:
  [ 93%] Building CXX object ggadget/gtk/CMakeFiles/ggadget-gtk-
1.0.dir/view_widget_binder.o                                                    

  cc1plus: warnings being treated as errors                                                                                                      
  /home/james/Code/google-gadgets-for-linux-read-
only/ggadget/gtk/view_widget_binder.cc:823: error: unused parameter ‘x’     

  /home/james/Code/google-gadgets-for-linux-read-
only/ggadget/gtk/view_widget_binder.cc:823: error: unused parameter ‘y’     

  /home/james/Code/google-gadgets-for-linux-read-
only/ggadget/gtk/view_widget_binder.cc: In member function ‘void   
ggadget::gtk::ViewWidgetBinder::QueueDraw()’:
  /home/james/Code/google-gadgets-for-linux-read-
only/ggadget/gtk/view_widget_binder.cc:1098: error: conversion to ‘guint’ 
from ‘uint64_t’ may alter its value
  make[2]: *** [ggadget/gtk/CMakeFiles/ggadget-gtk-
1.0.dir/view_widget_binder.o] Error 1

Original issue reported on code.google.com by mankeyra...@gmail.com on 12 May 2010 at 8:54

GoogleCodeExporter commented 9 years ago
Fixes (HACKS):

ggadget/gtk/view_widget_binder.cc:829: (void)x; (void)y;
ggadget/gtk/view_widget_binder.cc:1098: (guint)(current_time - impl_-
>last_self_draw_time_),

hosts/gtk/standalone_gtk_host.cc:229: (void)gadget;

It seems that this is producing a Release build, which means the ASSERTS are 
compiled 
out and some parameters aren't used. You're compiling with -Werror, which stops 
the 
build.

Original comment by mankeyra...@gmail.com on 12 May 2010 at 9:02