~unity-team/nux/nux.armel-fixes

« back to all changes in this revision

Viewing changes to tests/xtest-scrollbar.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:
77
77
 
78
78
ScrollBarTest* scrollbar_test;
79
79
 
80
 
void TestingThread(nux::NThread* thread, void* user_data)
 
80
void TestingThread(nux::NThread* /* thread */, void* user_data)
81
81
{
82
82
  while (scrollbar_test->ReadyToGo() == false)
83
83
  {
113
113
  nuxDebugMsg("Exit testing thread");
114
114
}
115
115
 
116
 
int main(int argc, char** argv)
 
116
int main()
117
117
{
118
 
  int xstatus = XInitThreads();
119
 
  nuxAssertMsg(xstatus > 0, "XInitThreads has failed");
 
118
  XInitThreads();
120
119
 
121
120
  scrollbar_test = new ScrollBarTest("Scrollbar Test", 500, 400, 13000);
122
121
  scrollbar_test->Startup();