Narrowing conversion errors on x86 platforms

Bug #1110728 reported by Stephen M. Webb
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xorg-gtest (Ubuntu)
Fix Released
High
Stephen M. Webb

Bug Description

Using the xorg-gtest package version 0.7.0-0ubuntu2 to build software with -Werror on an x86 (32-bit) platform, a warning causes build failures with the following messages.

In file included from /usr/src/xorg-gtest/src/xorg-gtest-all.cpp:29:0:
/usr/src/xorg-gtest/src/process.cpp: In member function ‘bool xorg::testing::Process::WaitForExit(unsigned int)’:
/usr/src/xorg-gtest/src/process.cpp:156:63: error: narrowing conversion of ‘(timeout / 1000u)’ from ‘unsigned int’ to ‘__time_t {aka long int}’ inside { } [-Werror=narrowing]
/usr/src/xorg-gtest/src/process.cpp:156:63: error: narrowing conversion of ‘(((long unsigned int)(timeout % 1000u)) * 1000000ul)’ from ‘long unsigned int’ to ‘__syscall_slong_t {aka long int}’ inside { } [-Werror=narrowing]

Related branches

Stephen M. Webb (bregma)
Changed in xorg-gtest (Ubuntu):
assignee: nobody → Stephen M. Webb (bregma)
importance: Undecided → High
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xorg-gtest - 0.7.0-0ubuntu3

---------------
xorg-gtest (0.7.0-0ubuntu3) raring; urgency=low

  * debian/patches/0003-remove-timeout-truncation-warning.patch:
    Elimiate compile-time warnings that cause problems when -Werror is enabled
    (lp: #1110728).
 -- <email address hidden> (Stephen M. Webb) Wed, 30 Jan 2013 17:03:28 -0500

Changed in xorg-gtest (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.