Anonymous
Not applicable
Jan 18, 2016
03:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 18, 2016
03:59 PM
The code built/linked without errors or warnings. This is a major compiler issue in my opinion. I was shocked. What exactly got built?
Of course we all know that the correct C for is "i += 1;"
I used WICED Smart SDK 2.2.0 for the 20736S device, on a Mac OS X.
Thanks,
Gil
Solved! Go to Solution.
Labels
- Labels:
-
SDK 2.X
1 Solution
Anonymous
Not applicable
Jan 19, 2016
09:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 19, 2016
09:40 AM
Hi Gil,
"i =+ 1;" is valid C syntax. What is does it it assigns the variable i to a value of +1, or just 1. This is why the compiler wouldn't recognize it as an error.
2 Replies
Anonymous
Not applicable
Jan 19, 2016
09:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 19, 2016
09:40 AM
Hi Gil,
"i =+ 1;" is valid C syntax. What is does it it assigns the variable i to a value of +1, or just 1. This is why the compiler wouldn't recognize it as an error.
Anonymous
Not applicable
Jan 19, 2016
10:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 19, 2016
10:53 AM
Yep. You're right. Thanks!