Bug 12679 - source4/torture/basic/base.c
Summary: source4/torture/basic/base.c
Status: RESOLVED WORKSFORME
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: 4.6.0
Hardware: x64 Mac OS X
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-11 17:55 UTC by Ruga
Modified: 2017-03-11 17:58 UTC (History)
0 users

See Also:


Attachments
patch (1.10 KB, patch)
2017-03-11 17:58 UTC, Ruga
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ruga 2017-03-11 17:55:48 UTC
../source4/torture/basic/base.c:193:6: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
        if (abs(t - time(NULL)) > 60*60*24*10) {
            ^

../source4/torture/basic/base.c:292:8: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
                if ((abs(a_time - t) > 60) && (a_time % (60*60) == 0)) {
                     ^

../source4/torture/basic/base.c:298:7: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
                if (abs(m_time - t) > 60*60*24*7) {
                    ^
Comment 1 Ruga 2017-03-11 17:58:45 UTC
Created attachment 13043 [details]
patch