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

Initialise FCounterResponse members #4084

Merged
merged 1 commit into from
Jan 14, 2025
Merged

Conversation

alexrudd
Copy link
Contributor

@alexrudd alexrudd commented Jan 7, 2025

What type of PR is this?

/kind cleanup

What this PR does / Why we need it:

Initialising members to their default values prevents compiler warnings:

Int64Property FCounterResponse::Count is not initialized properly even though its struct probably has a custom default constructor. Module:Agones File:Classes/Classes.h
Int64Property FCounterResponse::Capacity is not initialized properly even though its struct probably has a custom default constructor. Module:Agones File:Classes/Classes.h

All other structs in this file do initialize their members, so this PR brings the FCounterResponse struct in-line with the others.

Which issue(s) this PR fixes:

Special notes for your reviewer:

I've successfully built this change in my work project. I can also build it in a new blank UE4 project if required.

I'm hoping this change is simple enough to not need that though 🙏

@github-actions github-actions bot added kind/cleanup Refactoring code, fixing up documentation, etc size/XS labels Jan 7, 2025
@0xaravindh
Copy link
Member

/gcbrun

@agones-bot
Copy link
Collaborator

Build Failed 😭

Build Id: 88702def-c6c8-457a-9f04-84e669f88939

Status: FAILURE

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@igooch
Copy link
Collaborator

igooch commented Jan 13, 2025

@GloryOfNight could you please do a quick review?

Copy link
Contributor

@GloryOfNight GloryOfNight left a comment

Choose a reason for hiding this comment

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

LGTM

Initialising members to their default values prevents compiler warnings:

```
Int64Property FCounterResponse::Count is not initialized properly even though its struct probably has a custom default constructor. Module:Agones File:Classes/Classes.h
Int64Property FCounterResponse::Capacity is not initialized properly even though its struct probably has a custom default constructor. Module:Agones File:Classes/Classes.h
```
Copy link
Collaborator

@igooch igooch left a comment

Choose a reason for hiding this comment

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

per @GloryOfNight LGTM

@igooch igooch enabled auto-merge (squash) January 14, 2025 17:57
@igooch
Copy link
Collaborator

igooch commented Jan 14, 2025

/gcbrun

@agones-bot
Copy link
Collaborator

Build Failed 😭

Build Id: 8ce7c1a2-9158-4862-a1ee-8c42beb8afbc

Status: FAILURE

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@igooch
Copy link
Collaborator

igooch commented Jan 14, 2025

/gcbrun

@agones-bot
Copy link
Collaborator

Build Succeeded 🥳

Build Id: 4ee93cd6-b3c5-4b98-b8f9-396fc22fecd4

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

git fetch https://github.com/googleforgames/agones.git pull/4084/head:pr_4084 && git checkout pr_4084
helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.47.0-dev-c7c9f5d

@igooch igooch merged commit 1c769e0 into googleforgames:main Jan 14, 2025
4 checks passed
@alexrudd
Copy link
Contributor Author

Thanks all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cleanup Refactoring code, fixing up documentation, etc size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants