Public bug reported:

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]

** Affects: xorg-gtest (Ubuntu)
     Importance: High
     Assignee: Stephen M. Webb (bregma)
         Status: In Progress

** Changed in: xorg-gtest (Ubuntu)
     Assignee: (unassigned) => Stephen M. Webb (bregma)

** Changed in: xorg-gtest (Ubuntu)
   Importance: Undecided => High

** Changed in: xorg-gtest (Ubuntu)
       Status: New => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1110728

Title:
  Narrowing conversion errors on x86 platforms

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xorg-gtest/+bug/1110728/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to