Skip to content
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

Make changes to support compiling on Bullseye with GCC 10 #2216

Merged
merged 1 commit into from
Apr 4, 2022

Conversation

saiarcot895
Copy link
Contributor

Signed-off-by: Saikrishna Arcot [email protected]

What I did

Types of changes done:

  • Add missing includes in header files and .cpp files
  • Don't use parentheses when doing list initialization in constructors
  • Make sure variables are initialized before first use

Why I did it

Support building swss on Bullseye, so that containers can upgrade to Bullseye.

How I verified it

Not tested at this time, since there's no containers being built for Bullseye yet.

Details if related

Types of changes done:
* Add missing includes in header files and .cpp files
* Don't use parentheses when doing list initialization in constructors
* Make sure variables are initialized before first use

Signed-off-by: Saikrishna Arcot <[email protected]>
@saiarcot895 saiarcot895 requested a review from prsunny as a code owner April 1, 2022 16:03
@@ -465,7 +465,7 @@ bool RouteOrch::addLabelRoute(LabelRouteBulkContext& ctx, const NextHopGroupKey
Label& label = ctx.label;

/* next_hop_id indicates the next hop id or next hop group id of this route */
sai_object_id_t next_hop_id;
sai_object_id_t next_hop_id = SAI_NULL_OBJECT_ID;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems a valid bug fix. If true, let's backport to other branches. And better to have a separate PR just for it.

@saiarcot895
Copy link
Contributor Author

/azp run Azure.sonic-swss

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@saiarcot895 saiarcot895 merged commit 50d5be2 into sonic-net:master Apr 4, 2022
@saiarcot895 saiarcot895 deleted the bullseye-compilation branch April 4, 2022 22:39
AidanCopeland pushed a commit to Metaswitch/sonic-swss that referenced this pull request Apr 28, 2022
…2216)

Types of changes done:
* Add missing includes in header files and .cpp files
* Don't use parentheses when doing list initialization in constructors
* Make sure variables are initialized before first use

Signed-off-by: Saikrishna Arcot <[email protected]>
dprital pushed a commit to dprital/sonic-swss that referenced this pull request May 8, 2022
…2216)

Types of changes done:
* Add missing includes in header files and .cpp files
* Don't use parentheses when doing list initialization in constructors
* Make sure variables are initialized before first use

Signed-off-by: Saikrishna Arcot <[email protected]>
preetham-singh pushed a commit to preetham-singh/sonic-swss that referenced this pull request Aug 6, 2022
…2216)

Types of changes done:
* Add missing includes in header files and .cpp files
* Don't use parentheses when doing list initialization in constructors
* Make sure variables are initialized before first use

Signed-off-by: Saikrishna Arcot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants