-
Notifications
You must be signed in to change notification settings - Fork 207
Correct GCC warnings #798
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
Correct GCC warnings #798
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,11 +73,10 @@ | |
| #define ASSERT_CONCAT_( a, b ) a ## b | ||
| #define ASSERT_CONCAT( a, b ) ASSERT_CONCAT_( a, b ) | ||
| #define STATIC_ASSERT( e ) \ | ||
| ; enum { ASSERT_CONCAT( assert_line_, __LINE__ ) = 1 / ( !!( e ) ) } | ||
| enum { ASSERT_CONCAT( assert_line_, __LINE__ ) = 1 / ( !!( e ) ) } | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assume this change did not break anything.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @AniruddhaKanhere wrote:
The semicolon isn't necessary. It doesn't change the behaviour. As you see this is a static assert of the expression I just tested these static asserts: The compiler listed 2 failures:
In the code, it is assumed that a network buffer always has enough space to store There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just for documentation purposes: TI ARM CGT also complained about the semicolon. |
||
|
|
||
| STATIC_ASSERT( ipconfigETHERNET_MINIMUM_PACKET_BYTES <= baMINIMAL_BUFFER_SIZE ); | ||
| #endif | ||
|
|
||
| /* A list of free (available) NetworkBufferDescriptor_t structures. */ | ||
| static List_t xFreeBuffersList; | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.