[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] [patch] Remove unnecessary calls to labs()

From: Paul Pluzhnikov
Subject: [Libunwind-devel] [patch] Remove unnecessary calls to labs()
Date: Tue, 29 Jul 2014 13:27:43 -0700


Roman reports that Clang warns on unnecessary calls to labs():

  taking the absolute value of unsigned type 'unw_word_t' (aka
'unsigned long') has no effect [-Werror,-Wabsolute-value]

Since rs->reg[...].val is unw_word_t and unsigned on all platforms,
this patch removes the unnecessary calls to labs().

Tested on Linux x86_64, no regressions.

Paul Pluzhnikov

Attachment: libunwind-remove-labs.txt
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]