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

remove warnings about uninitialized variables #4437

Merged
merged 1 commit into from
Feb 23, 2015

Conversation

WalterBright
Copy link
Member

Fixes these spurious warnings:

mtype.c: In member function 'virtual bool TypeStruct::isAssignable()':
mtype.c:7761: warning: 'offset' may be used uninitialized in this function
expression.c: In function 'bool arrayExpressionToCommonType(Scope*, Expressions*, Type**)':
expression.c:1119: warning: 'j0' may be used uninitialized in this function
expression.c:1118: warning: 'e0' may be used uninitialized in this function
doc.c: In member function 'void DocComment::parseSections(const utf8_t*)':
doc.c:1395: warning: 'idstart' may be used uninitialized in this function
template.c: In member function 'virtual void TemplateInstance::semantic3(Scope*)':
template.c:7373: warning: 'oldGaggedErrors' may be used uninitialized in this function
template.c: In member function 'virtual void TemplateInstance::semantic2(Scope*)':
template.c:7314: warning: 'oldGaggedErrors' may be used uninitialized in this function
mtype.c: In member function 'virtual MATCH TypeStruct::implicitConvTo(Type*)':
mtype.c:7827: warning: 'offset' may be used uninitialized in this function
clone.c: In function 'FuncDeclaration* hasIdentityOpEquals(AggregateDeclaration*, Scope*)':
clone.c:402: warning: 'tthis' may be used uninitialized in this function
interpret.c: In member function 'Expression* Interpreter::assignToLvalue(BinExp*, Expression*, Expression*)':
interpret.c:3675: warning: 'payload' may be used uninitialized in this function
interpret.c: In function 'Expression* foreachApplyUtf(InterState*, Expression*, Expression*, bool)':
interpret.c:6311: warning: 'eresult' may be used uninitialized in this function

@yebblies
Copy link
Member

Auto-merge toggled on

braddr added a commit that referenced this pull request Feb 23, 2015
remove warnings about uninitialized variables
@braddr braddr merged commit 99df58a into dlang:master Feb 23, 2015
@WalterBright WalterBright deleted the uninitialized branch February 23, 2015 11:43
ErnyTech pushed a commit to ErnyTech/dmd that referenced this pull request Jul 19, 2023
This follows PR dlang#15415 which added Intel CET IBT support and
LDC PR dlang#4437 to add support for the new CET target in order
to maintain a common interface between DMD and LDC.

Later it would be useful to do the same for GDC as well.
ErnyTech pushed a commit to ErnyTech/dmd that referenced this pull request Jul 20, 2023
This follows PR dlang#15415 which added Intel CET IBT support and
LDC PR dlang#4437 to add support for the new CET target in order
to maintain a common interface between DMD and LDC.

Later it would be useful to do the same for GDC as well.
ErnyTech pushed a commit to ErnyTech/dmd that referenced this pull request Jul 20, 2023
This follows PR dlang#15415 which added Intel CET IBT support and
LDC PR dlang#4437 to add support for the new CET target in order
to maintain a common interface between DMD and LDC.

Later it would be useful to do the same for GDC as well.
ErnyTech pushed a commit to ErnyTech/dmd that referenced this pull request Jul 20, 2023
This follows PR dlang#15415 which added Intel CET IBT support and
LDC PR dlang#4437 to add support for the new CET target in order
to maintain a common interface between DMD and LDC.

Later it would be useful to do the same for GDC as well.
dkorpel pushed a commit that referenced this pull request Aug 27, 2023
This follows PR #15415 which added Intel CET IBT support and
LDC PR #4437 to add support for the new CET target in order
to maintain a common interface between DMD and LDC.

Later it would be useful to do the same for GDC as well.
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