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

Fixes from warning generation in Clang(windows) and MSVC #2677

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

aaye
Copy link

@aaye aaye commented Sep 12, 2023

Description of Change(s)

  • Fix for the use of "long" type in printf format strings when paired with a size_t argument. Change from "l" to "z".
  • Fix for testing an array variable for null (which would always fail). Changed to testing the expected length of the array (larger than zero)
  • Added a couple of pragmas for disabling warnings that I will need later.

Fixes Issue(s)

  • Compile warnings
  • I have verified that all unit tests pass with the proposed changes
  • I have submitted a signed Contributor License Agreement

@aaye aaye changed the base branch from release to dev September 12, 2023 19:07
@jesschimein
Copy link
Collaborator

Filed as internal issue #USD-8691

@aaye aaye force-pushed the dev_pr_warnings_0 branch from d94ef92 to 2918312 Compare September 14, 2023 19:33
@aaye
Copy link
Author

aaye commented Sep 15, 2023

I seem to be hitting the 2-hour limit on the windows compile across my changes. Anything that can be done about that?

@aaye aaye force-pushed the dev_pr_warnings_0 branch 2 times, most recently from 83efb67 to 9625ddf Compare September 17, 2023 07:57
@spiffmon
Copy link
Member

spiffmon commented Sep 18, 2023 via email

@aaye
Copy link
Author

aaye commented Sep 18, 2023

Thanks! The rest all got through so not that big of a hit in terms of value for time spent. Will see if there is anything I can do on my end.

@aaye aaye force-pushed the dev_pr_warnings_0 branch 2 times, most recently from 74591eb to 057f819 Compare September 24, 2023 18:10
@aaye aaye force-pushed the dev_pr_warnings_0 branch from 057f819 to ae38e95 Compare November 24, 2024 07:17
@aaye
Copy link
Author

aaye commented Nov 24, 2024

Got pinged recently on an issue with PCH on Windows builds etc. I know its been a year, updated my changes to the most recent and updated the branch.

@aaye aaye force-pushed the dev_pr_warnings_0 branch from ae38e95 to 0a0820c Compare November 25, 2024 00:16
@jesschimein
Copy link
Collaborator

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@aaye aaye force-pushed the dev_pr_warnings_0 branch from 0a0820c to f6315de Compare November 27, 2024 08:26
@jesschimein
Copy link
Collaborator

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Removed unused member variables
Printf format for a size_t should be zu (since the size of the variable is by definition capable of being different integer lengths).
Fixed some API tags that were causing a conflict in export/import pairing
Added some missing override keywords
Added some ARCH_PRAGMA warning disables around some code that was causing Windows Clang (clang version 19.1.3, Target: x86_64-pc-windows-msvc, Thread model: posix) to throw warnings.
Fixed windows linked flags when using clang
@aaye aaye force-pushed the dev_pr_warnings_0 branch from f6315de to cc0ecda Compare November 27, 2024 23:46
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