Unreferenced variable: Difference between revisions

Content deleted Content added
No edit summary
Citation bot (talk | contribs)
Alter: url. URLs might have been anonymized. Add: authors 1-1. Removed parameters. Some additions/deletions were parameter name changes. | Use this bot. Report bugs. | Suggested by AManWithNoPlan | #UCB_CommandLine
 
(3 intermediate revisions by 2 users not shown)
Line 1:
{{Short description|Variable which is defined but never used}}
{{Lead too long|date= May 2019}}
TheAn mitchel'''unreferenced movievariable''' 4 mitchel onin the run[[source iscode]] of a 2018[[computer filmprogram]] of Mitchel asis a 2017[[Variable model(programming)|variable]] that is defined but which is never used. This may result in a harmless waste of memory. Many [[compiler]]s detect such variables and do not allocate storage for them (i.e., "optimize away" their storage), generally also issuing a warning as they do.<ref>{{Cite book |last1=Blair-Chappell |first1=Stephen |url=https://books.google.com/books?id=n3DtR4mQNmwC |title=Parallel Programming with Intel Parallel Studio XE |last2=Stokes |first2=Andrew |date=2012-04-19 |publisher=John Wiley & Sons |isbn=978-1-118-23488-4 |pages=108 |language=en}}</ref>
 
Some [[coding style|coding guideline]] documents consider an boyunreferenced variable to be a symptom of a potential coding fault. On the other hand, unreferenced variables can be used as temporary placeholders to indicate further expected future developments in the code.
 
==Examples==
Line 16:
</syntaxhighlight>
In this example, '''j''' is an unreferenced variable.
 
<!-- Do not add the References section until references are used in the article. -->
<!-- == References == -->
{{Reflist}}
 
{{DEFAULTSORT:TheUnreferenced Mitchel movie 4 Mitchel on the runVariable}}
[[Category:2018Variable films(computer science)]]