Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
codingman
/
cppcheck
Public
forked from
cppcheck-opensource/cppcheck
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
cppcheck
test
testunusedvar.cpp
on
32bit
User selector
All users
Datepicker
All time
Commit history
Commits on Aug 7, 2021
Format with uncrustify (#3388)
pfultz2
authored
7f358b2
View commit details
Copy full SHA for 7f358b2
View code at this point
Browse repository at this point
Commits on May 18, 2021
Fixed #10276 (FP: (style) Variable '((uint8_t*)(uint16_t)0x1000)[0]' is assigned a value that is never used.)
danmar
committed
2169187
View commit details
Copy full SHA for 2169187
View code at this point
Browse repository at this point
Commits on May 15, 2021
testunusedvar: Remove test cases that have undefined behavior
danmar
committed
3c885df
View commit details
Copy full SHA for 3c885df
View code at this point
Browse repository at this point
Commits on May 14, 2021
unused var; fix todo test cases, redundant assignment of array in loop
danmar
committed
404b82f
View commit details
Copy full SHA for 404b82f
View code at this point
Browse repository at this point
testunusedvar: fix mismatching allocation/deallocation in test
danmar
committed
56410c3
View commit details
Copy full SHA for 56410c3
View code at this point
Browse repository at this point
testunusedvar: move UB testcase to testuninitvar
danmar
committed
56bc553
View commit details
Copy full SHA for 56bc553
View code at this point
Browse repository at this point
testunusedvar.cpp: remove test cases that has undefined behavior
danmar
committed
ffac1d1
View commit details
Copy full SHA for ffac1d1
View code at this point
Browse repository at this point
Commits on May 13, 2021
unused var; remove test case that has undefined behavior
danmar
committed
fd31f08
View commit details
Copy full SHA for fd31f08
View code at this point
Browse repository at this point
extracttests: disable TestUnusedVar::localvar2 tests they do not make sense externally
danmar
committed
1def0d7
View commit details
Copy full SHA for 1def0d7
View code at this point
Browse repository at this point
updated extracttests.py. fix syntax errors in test cases.
danmar
committed
d549770
View commit details
Copy full SHA for d549770
View code at this point
Browse repository at this point
Commits on May 9, 2021
Fixed #6766 (Improve check; struct member is assigned value that is never used)
danmar
committed
2e2d766
View commit details
Copy full SHA for 2e2d766
View code at this point
Browse repository at this point
Commits on Apr 26, 2021
Fix varId assignment for uses of variables declared in the if condition (#3231)
Show description for b18e6f1
dummyunit
authored
b18e6f1
View commit details
Copy full SHA for b18e6f1
View code at this point
Browse repository at this point
Commits on Mar 21, 2021
Update Copyright year
danmar
committed
4243727
View commit details
Copy full SHA for 4243727
View code at this point
Browse repository at this point
Commits on Feb 24, 2021
Refactorization: Improved internal implementation of severity and certainty levels
Show description for 141d2ac
PKEuS
authored and
danmar
committed
141d2ac
View commit details
Copy full SHA for 141d2ac
View code at this point
Browse repository at this point
Commits on Feb 20, 2021
Re-enabled a bunch of disabled unit tests, some as TODO tests
Show description for 4b01d5b
PKEuS
authored and
danmar
committed
4b01d5b
View commit details
Copy full SHA for 4b01d5b
View code at this point
Browse repository at this point
Refactorization: Removed unnecessary \n and spaces in strings
Show description for cf19372
PKEuS
authored and
danmar
committed
cf19372
View commit details
Copy full SHA for cf19372
View code at this point
Browse repository at this point
Fixed false negatives literalWithCharPtrCompare when address-of operator (C only) or arrays are used, adapted TODO unit tests
Show description for 423d7db
PKEuS
authored and
danmar
committed
423d7db
View commit details
Copy full SHA for 423d7db
View code at this point
Browse repository at this point
Commits on Jan 1, 2021
checkunusedvar: handle array element change using pointer arithmetic (#3000)
miltolstoy
authored
ee8d5b9
View commit details
Copy full SHA for ee8d5b9
View code at this point
Browse repository at this point
Commits on Dec 19, 2020
feat(unused_var): analyze global variables inside function body (#2944)
miltolstoy
authored
6366a57
View commit details
Copy full SHA for 6366a57
View code at this point
Browse repository at this point
Commits on Nov 28, 2020
astyle formatting
danmar
committed
484b68c
View commit details
Copy full SHA for 484b68c
View code at this point
Browse repository at this point
Commits on Nov 26, 2020
feat: analyze function side effects (#2901)
miltolstoy
authored
5d29901
View commit details
Copy full SHA for 5d29901
View code at this point
Browse repository at this point
Commits on Oct 25, 2020
Fixed #9737 (False positive: unreadVariable)
danmar
committed
34c8334
View commit details
Copy full SHA for 34c8334
View code at this point
Browse repository at this point
astyle formatting
Show description for 0551495
danmar
committed
0551495
View commit details
Copy full SHA for 0551495
View code at this point
Browse repository at this point
checkunusedvar: handle initialization list (#2836)
miltolstoy
authored
d55874e
View commit details
Copy full SHA for d55874e
View code at this point
Browse repository at this point
Commits on Oct 2, 2020
Fixed #9707 (False positive: unreadVariable, union)
danmar
committed
6de91d6
View commit details
Copy full SHA for 6de91d6
View code at this point
Browse repository at this point
Commits on Sep 27, 2020
Fixed #9680 (false positive: style: Variable 'x' is assigned a value that is never used with smart pointers)
danmar
committed
ba84303
View commit details
Copy full SHA for ba84303
View code at this point
Browse repository at this point
Commits on Sep 26, 2020
Fixed #9901 (False positive: variable is assigned value that is not used 'if (--N == 0)')
danmar
committed
7bb82c5
View commit details
Copy full SHA for 7bb82c5
View code at this point
Browse repository at this point
Commits on Jul 23, 2020
Fixed #9017 (Simple classes without side effects not reported as unused)
danmar
committed
682a6d1
View commit details
Copy full SHA for 682a6d1
View code at this point
Browse repository at this point
Commits on Jun 30, 2020
Fixed #3088 (False positive: Dont report "struct or union member is never used" for structs with __attribute__((packed)) or #pragma pack(push))
danmar
committed
0583763
View commit details
Copy full SHA for 0583763
View code at this point
Browse repository at this point
Commits on May 10, 2020
Update copyright year
danmar
committed
08ddd84
View commit details
Copy full SHA for 08ddd84
View code at this point
Browse repository at this point
Revert "Update copyright year"
Show description for 3e02182
danmar
committed
3e02182
View commit details
Copy full SHA for 3e02182
View code at this point
Browse repository at this point
Update copyright year
danmar
committed
6eec6c4
View commit details
Copy full SHA for 6eec6c4
View code at this point
Browse repository at this point
Commits on Apr 12, 2020
Maybeunusedsupport (#2570)
Show description for 82c09f2
shaneasd
authored
82c09f2
View commit details
Copy full SHA for 82c09f2
View code at this point
Browse repository at this point
Commits on Apr 8, 2020
astyle formatting
Show description for 37a4e37
danmar
committed
37a4e37
View commit details
Copy full SHA for 37a4e37
View code at this point
Browse repository at this point
avoid false positive unused static const struct member (#2598)
Achouv
authored
7719e43
View commit details
Copy full SHA for 7719e43
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.