~unity-team/nux/nux.redirected-views

« back to all changes in this revision

Viewing changes to tests/xtest-hgrid-key-navigation.cpp

  • Committer: Tarmac
  • Author(s): Michi Henning
  • Date: 2012-10-02 01:05:45 UTC
  • mfrom: (667.2.5 1056633)
  • Revision ID: tarmac-20121002010545-jphizk30nj3oe9ui
Added -Wextra to compiler flags and removed a large number of warnings about unused parameters. Code compiles clean now without warnings, except for one remaining warning (see bug #1052765).. Fixes: https://bugs.launchpad.net/bugs/1056633. Approved by Michi Henning.

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
 
104
104
HGridKeyNavigationTest* key_navigation_test = NULL;
105
105
 
106
 
void TestingThread(nux::NThread* thread, void* user_data)
 
106
void TestingThread(nux::NThread* /* thread */, void* user_data)
107
107
{
108
108
  while (key_navigation_test->ReadyToGo() == false)
109
109
  {
199
199
  nuxDebugMsg("Exit testing thread");
200
200
}
201
201
 
202
 
int main(int argc, char** argv)
 
202
int main()
203
203
{
204
 
  int xstatus = XInitThreads();
205
 
  nuxAssertMsg(xstatus > 0, "XInitThreads has failed");
 
204
  XInitThreads();
206
205
 
207
206
  key_navigation_test = new HGridKeyNavigationTest("Key navigation Test", 500, 400, 20000);
208
207
  key_navigation_test->Startup();