-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing return type of vtimer_set_msg #2545
Changing return type of vtimer_set_msg #2545
Conversation
I don't see why you need to include your Commit from #2544 |
@authmillenon Sorry , Commit from #2544 got added by accident ( they were part of branch I guess ) , apart from that is it alright ? |
@authmillenon just the last one , what is the reason for build failing for this one ( I guess it's because the unix script is also a part of it ). Can you help me with understanding the output of Travis (in general) , it will be really helpful to understand the problems myself. From what I see there is a list of different platforms for which it is built and some static tests. |
@kushalsingh007 At the bottom of the comments thread you'll find the text "Failed — The Travis CI build failed ", click on the link "Details" to the right of that text. (I restarted your build just now so it might still say "Waiting to hear about e916630 — The Travis CI build is in progress ", you can watch the build live on the Details page) The new page displays the "build matrix". Any red items are failed, green are fine, yellow are running, and sometimes they can be grey, the grey is usually that the Travis server was overloaded and the build was killed for taking too long to complete. If the
Look for error lines, in your case it says there are whitespace errors. (For whitespace errors specifically, the easiest way to find them is to run Next, go back to the build matrix, click on the next failing build, read the text. If there are some boards failing on some tests it may be because of a real error, or may be because of Travis' general flakyness... The easiest way to find out is to try and build for that board on your PC and see if you get any errors or warnings. If it works on your PC, then all we have to do is restart the job a couple of times until Travis is happy. Some days Travis is fine right away, other days it may take several attempts until it works (nobody is happy with this method, but it's better than no CI at all) |
In your particular case, Travis is not failing because of flakiness but because of real errors in your code. This is good because this is why we have a CI system. https://travis-ci.org/RIOT-OS/RIOT/jobs/53258558
|
@gebart thanks for the detailed description! |
I think not only do vtimer_init and vtimer_remove have useless return values , but set_longterm and update_shortterm too. |
In addition: I was thinking more about an extension of the return values than changing to void. @kushalsingh007 are you going to take the line-endings-check commit out? |
@PeterKietzmann I'll do it ( removing the line-ending-check commit ) as soon as I get back to my computer :) , can you tell me what you mean by extension of return values ? @gebart : Thanks for the great explanation |
I just meant that "just" returning |
b2272ef
to
dddeb84
Compare
The error is due to the build getting stalled . |
Can this PR be merged now ? |
Does this commit have any more problems left ? |
Can you change the first line of the commit message to something like |
Doxygen needs adaption, too. |
dddeb84
to
dbfb69f
Compare
@OlegHahm : I have changed the commit message but I am not sure I follow you about doxygen adaptation , isn't the documentation auto generated ? |
Yes, but it is generated by doxygen based on the comments in doxygen style. Thus, you need to remove the |
dbfb69f
to
9456b25
Compare
Done |
Looks good. Please squash. |
9456b25
to
f93af1e
Compare
Done squashing :) |
You could add to the commit message which functions were affected. |
- Changed the return type for vtimer_init,vtimer_set_msg and vtimer_remove. - Current return value is not used anywhere and has no meaning attached to it. - Fix for RIOT-OS#1533 - Removed tests which checked for vtimer_set_msg being set. - Done doxygen adaption for corresponding vtimer functions.
f93af1e
to
1dc6c35
Compare
Changed the commit message. |
|
ACK and go! |
Changing return type of vtimer_set_msg
-The current return value is not used anywhere and has no meaning attached to it.