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

Error compiling DcsCfgCrypt.c with VS2017 #16

Closed
manison opened this issue Feb 6, 2019 · 1 comment
Closed

Error compiling DcsCfgCrypt.c with VS2017 #16

manison opened this issue Feb 6, 2019 · 1 comment

Comments

@manison
Copy link
Contributor

manison commented Feb 6, 2019

When I'm building DcsCfg under VS2017 (#13), I get the following error in DcsCfgCrypt.c:

d:\shared\edk2\DcsPkg\DcsCfg\DcsCfgCrypt.c(1766): error C2220: warning treated as error - no 'object' file generated
d:\shared\edk2\DcsPkg\DcsCfg\DcsCfgCrypt.c(1766): warning C4459: declaration of 'SecRegionData' hides global declaration
d:\shared\edk2\DcsPkg\DcsCfg\DcsCfgCrypt.c(49): note: see declaration of 'SecRegionData'
d:\shared\edk2\DcsPkg\DcsCfg\DcsCfgCrypt.c(1767): warning C4459: declaration of 'SecRegionSize' hides global declaration
d:\shared\edk2\DcsPkg\DcsCfg\DcsCfgCrypt.c(50): note: see declaration of 'SecRegionSize'
d:\shared\edk2\DcsPkg\DcsCfg\DcsCfgCrypt.c(1768): warning C4459: declaration of 'SecRegionOffset' hides global declaration
d:\shared\edk2\DcsPkg\DcsCfg\DcsCfgCrypt.c(51): note: see declaration of 'SecRegionOffset'

The local variables declared in SecRigionDump (sic) or the warning should be suppressed.

There is also typo in SecRigionXxx functions. Apparently they should be named SecRegionXxx.

@idrassi
Copy link
Member

idrassi commented Sep 22, 2019

Thank you for this report.
I have pushed 2 commits that fox this: one that renames the local variables in SecRigionDump (59f630c) and one that renames the functions SecRigionXxx to SecRegionXxx (88a01b0)

@idrassi idrassi closed this as completed Sep 22, 2019
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

No branches or pull requests

2 participants