projects
/
pub
/
USBasp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bb85d08
)
Update StaticAnalysisTest to check for missing header files. Fix found incorrect...
author
Dean Camera
<dean@fourwalledcubicle.com>
Wed, 29 Feb 2012 17:04:04 +0000
(17:04 +0000)
committer
Dean Camera
<dean@fourwalledcubicle.com>
Wed, 29 Feb 2012 17:04:04 +0000
(17:04 +0000)
17 files changed:
BuildTests/StaticAnalysisTest/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/MassStorage/Lib/DataflashManager.h
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/MassStorage/Lib/SCSI.h
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/MassStorageKeyboard/Lib/DataflashManager.h
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/MassStorageKeyboard/Lib/SCSI.h
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/VirtualSerialMassStorage/Lib/DataflashManager.h
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/VirtualSerialMassStorage/Lib/SCSI.h
patch
|
blob
|
blame
|
history
Demos/Device/Incomplete/Sideshow/Lib/SideshowCommands.h
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/MassStorage/Lib/DataflashManager.h
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/MassStorage/Lib/SCSI.h
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/RNDISEthernet/Lib/RNDIS.h
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/MassStorageHost/Lib/MassStoreCommands.h
patch
|
blob
|
blame
|
history
Projects/Incomplete/StandaloneProgrammer/Lib/DataflashManager.h
patch
|
blob
|
blame
|
history
Projects/Incomplete/StandaloneProgrammer/Lib/SCSI.h
patch
|
blob
|
blame
|
history
Projects/TempDataLogger/Lib/DataflashManager.h
patch
|
blob
|
blame
|
history
Projects/Webserver/Lib/DataflashManager.h
patch
|
blob
|
blame
|
history
Projects/Webserver/Lib/uIPManagement.h
patch
|
blob
|
blame
|
history
diff --git
a/BuildTests/StaticAnalysisTest/makefile
b/BuildTests/StaticAnalysisTest/makefile
index
766bf08
..
44c7d5f
100644
(file)
--- a/
BuildTests/StaticAnalysisTest/makefile
+++ b/
BuildTests/StaticAnalysisTest/makefile
@@
-9,15
+9,19
@@
# Static anlysis of the entire LUFA source tree, using the free cross-platform "cppcheck" tool.
\r
\r
# Path to the root of the LUFA tree to scan
\r
# Static anlysis of the entire LUFA source tree, using the free cross-platform "cppcheck" tool.
\r
\r
# Path to the root of the LUFA tree to scan
\r
-LUFA_ROOT_PATH = ../../
\r
+LUFA_ROOT_PATH
= ../../
\r
\r
# Filenames or directories (including fragments) to exclude from the analysis
\r
\r
# Filenames or directories (including fragments) to exclude from the analysis
\r
-EXCLUDE_LIST = HostLoaderApp/ FATFs/ PetiteFATFs/ uip/
\r
+EXCLUDE_LIST
= HostLoaderApp/ FATFs/ PetiteFATFs/ uip/
\r
\r
# Output message template for found warnings and errors
\r
\r
# Output message template for found warnings and errors
\r
-MESSAGE_TEMPLATE = "{file}({line}): {severity} ({id}): {message}"
\r
+MESSAGE_TEMPLATE = "{file}({line}): {severity} ({id}): {message}"
\r
+
\r
+# Checks to suppress so that generated warnings are discarded
\r
+SUPPRESS_WARNINGS = variableScope unusedFunction missingInclude
\r
\r
all:
\r
\r
all:
\r
- cppcheck -q -f --error-exitcode=1 --inline-suppr --enable=style --suppress=variableScope --template $(MESSAGE_TEMPLATE) $(EXCLUDE_LIST:%=-i%) $(LUFA_ROOT_PATH)
\r
+ cppcheck -q --std=c99 --check-config $(EXCLUDE_LIST:%=-i%) $(LUFA_ROOT_PATH)
\r
+ cppcheck -q -f --std=c99 --error-exitcode=1 --inline-suppr --enable=all $(SUPPRESS_WARNINGS:%=--suppress=%) --template $(MESSAGE_TEMPLATE) $(EXCLUDE_LIST:%=-i%) $(LUFA_ROOT_PATH)
\r
\r
%:
\ No newline at end of file
\r
%:
\ No newline at end of file
diff --git
a/Demos/Device/ClassDriver/MassStorage/Lib/DataflashManager.h
b/Demos/Device/ClassDriver/MassStorage/Lib/DataflashManager.h
index
3144c87
..
18606ea
100644
(file)
--- a/
Demos/Device/ClassDriver/MassStorage/Lib/DataflashManager.h
+++ b/
Demos/Device/ClassDriver/MassStorage/Lib/DataflashManager.h
@@
-39,8
+39,8
@@
/* Includes: */
#include <avr/io.h>
/* Includes: */
#include <avr/io.h>
- #include "MassStorage.h"
- #include "Descriptors.h"
+ #include "
../
MassStorage.h"
+ #include "
../
Descriptors.h"
#include <LUFA/Common/Common.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Common/Common.h>
#include <LUFA/Drivers/USB/USB.h>
diff --git
a/Demos/Device/ClassDriver/MassStorage/Lib/SCSI.h
b/Demos/Device/ClassDriver/MassStorage/Lib/SCSI.h
index
635bd06
..
d446623
100644
(file)
--- a/
Demos/Device/ClassDriver/MassStorage/Lib/SCSI.h
+++ b/
Demos/Device/ClassDriver/MassStorage/Lib/SCSI.h
@@
-42,8
+42,8
@@
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/USB/USB.h>
- #include "MassStorage.h"
- #include "Descriptors.h"
+ #include "
../
MassStorage.h"
+ #include "
../
Descriptors.h"
#include "DataflashManager.h"
/* Macros: */
#include "DataflashManager.h"
/* Macros: */
diff --git
a/Demos/Device/ClassDriver/MassStorageKeyboard/Lib/DataflashManager.h
b/Demos/Device/ClassDriver/MassStorageKeyboard/Lib/DataflashManager.h
index
8ef430a
..
f7552dc
100644
(file)
--- a/
Demos/Device/ClassDriver/MassStorageKeyboard/Lib/DataflashManager.h
+++ b/
Demos/Device/ClassDriver/MassStorageKeyboard/Lib/DataflashManager.h
@@
-39,8
+39,8
@@
/* Includes: */
#include <avr/io.h>
/* Includes: */
#include <avr/io.h>
- #include "MassStorageKeyboard.h"
- #include "Descriptors.h"
+ #include "
../
MassStorageKeyboard.h"
+ #include "
../
Descriptors.h"
#include <LUFA/Common/Common.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Common/Common.h>
#include <LUFA/Drivers/USB/USB.h>
diff --git
a/Demos/Device/ClassDriver/MassStorageKeyboard/Lib/SCSI.h
b/Demos/Device/ClassDriver/MassStorageKeyboard/Lib/SCSI.h
index
cc4581d
..
5c3d3bf
100644
(file)
--- a/
Demos/Device/ClassDriver/MassStorageKeyboard/Lib/SCSI.h
+++ b/
Demos/Device/ClassDriver/MassStorageKeyboard/Lib/SCSI.h
@@
-42,8
+42,8
@@
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/USB/USB.h>
- #include "MassStorageKeyboard.h"
- #include "Descriptors.h"
+ #include "
../
MassStorageKeyboard.h"
+ #include "
../
Descriptors.h"
#include "DataflashManager.h"
/* Macros: */
#include "DataflashManager.h"
/* Macros: */
diff --git
a/Demos/Device/ClassDriver/VirtualSerialMassStorage/Lib/DataflashManager.h
b/Demos/Device/ClassDriver/VirtualSerialMassStorage/Lib/DataflashManager.h
index
dbcbb5d
..
1d12386
100644
(file)
--- a/
Demos/Device/ClassDriver/VirtualSerialMassStorage/Lib/DataflashManager.h
+++ b/
Demos/Device/ClassDriver/VirtualSerialMassStorage/Lib/DataflashManager.h
@@
-39,8
+39,8
@@
/* Includes: */
#include <avr/io.h>
/* Includes: */
#include <avr/io.h>
- #include "VirtualSerialMassStorage.h"
- #include "Descriptors.h"
+ #include "
../
VirtualSerialMassStorage.h"
+ #include "
../
Descriptors.h"
#include <LUFA/Common/Common.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Common/Common.h>
#include <LUFA/Drivers/USB/USB.h>
diff --git
a/Demos/Device/ClassDriver/VirtualSerialMassStorage/Lib/SCSI.h
b/Demos/Device/ClassDriver/VirtualSerialMassStorage/Lib/SCSI.h
index
214ddaf
..
83d5646
100644
(file)
--- a/
Demos/Device/ClassDriver/VirtualSerialMassStorage/Lib/SCSI.h
+++ b/
Demos/Device/ClassDriver/VirtualSerialMassStorage/Lib/SCSI.h
@@
-42,8
+42,8
@@
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/USB/USB.h>
- #include "VirtualSerialMassStorage.h"
- #include "Descriptors.h"
+ #include "
../
VirtualSerialMassStorage.h"
+ #include "
../
Descriptors.h"
#include "DataflashManager.h"
/* Macros: */
#include "DataflashManager.h"
/* Macros: */
diff --git
a/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommands.h
b/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommands.h
index
963164b
..
4f4b5c1
100644
(file)
--- a/
Demos/Device/Incomplete/Sideshow/Lib/SideshowCommands.h
+++ b/
Demos/Device/Incomplete/Sideshow/Lib/SideshowCommands.h
@@
-36,7
+36,7
@@
#include <stdbool.h>
#include <string.h>
#include <stdbool.h>
#include <string.h>
- #include "Sideshow.h"
+ #include "
../
Sideshow.h"
#include "SideshowCommon.h"
#include "SideshowApplications.h"
#include "SideshowContent.h"
#include "SideshowCommon.h"
#include "SideshowApplications.h"
#include "SideshowContent.h"
diff --git
a/Demos/Device/LowLevel/MassStorage/Lib/DataflashManager.h
b/Demos/Device/LowLevel/MassStorage/Lib/DataflashManager.h
index
ab68049
..
d70a86c
100644
(file)
--- a/
Demos/Device/LowLevel/MassStorage/Lib/DataflashManager.h
+++ b/
Demos/Device/LowLevel/MassStorage/Lib/DataflashManager.h
@@
-39,8
+39,8
@@
/* Includes: */
#include <avr/io.h>
/* Includes: */
#include <avr/io.h>
- #include "MassStorage.h"
- #include "Descriptors.h"
+ #include "
../
MassStorage.h"
+ #include "
../
Descriptors.h"
#include <LUFA/Common/Common.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Common/Common.h>
#include <LUFA/Drivers/USB/USB.h>
diff --git
a/Demos/Device/LowLevel/MassStorage/Lib/SCSI.h
b/Demos/Device/LowLevel/MassStorage/Lib/SCSI.h
index
244daaa
..
b0065cd
100644
(file)
--- a/
Demos/Device/LowLevel/MassStorage/Lib/SCSI.h
+++ b/
Demos/Device/LowLevel/MassStorage/Lib/SCSI.h
@@
-44,8
+44,8
@@
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Board/LEDs.h>
- #include "MassStorage.h"
- #include "Descriptors.h"
+ #include "
../
MassStorage.h"
+ #include "
../
Descriptors.h"
#include "DataflashManager.h"
/* Macros: */
#include "DataflashManager.h"
/* Macros: */
diff --git
a/Demos/Device/LowLevel/RNDISEthernet/Lib/RNDIS.h
b/Demos/Device/LowLevel/RNDISEthernet/Lib/RNDIS.h
index
cd2ff55
..
8bf8bdf
100644
(file)
--- a/
Demos/Device/LowLevel/RNDISEthernet/Lib/RNDIS.h
+++ b/
Demos/Device/LowLevel/RNDISEthernet/Lib/RNDIS.h
@@
-40,7
+40,7
@@
#include <avr/io.h>
#include <stdbool.h>
#include <avr/io.h>
#include <stdbool.h>
- #include "RNDISEthernet.h"
+ #include "
../
RNDISEthernet.h"
#include "Ethernet.h"
/* External Variables: */
#include "Ethernet.h"
/* External Variables: */
diff --git
a/Demos/Host/LowLevel/MassStorageHost/Lib/MassStoreCommands.h
b/Demos/Host/LowLevel/MassStorageHost/Lib/MassStoreCommands.h
index
5e4e04d
..
5b050e8
100644
(file)
--- a/
Demos/Host/LowLevel/MassStorageHost/Lib/MassStoreCommands.h
+++ b/
Demos/Host/LowLevel/MassStorageHost/Lib/MassStoreCommands.h
@@
-39,7
+39,7
@@
/* Includes: */
#include <avr/io.h>
/* Includes: */
#include <avr/io.h>
- #include "MassStorageHost.h"
+ #include "
../
MassStorageHost.h"
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/USB/USB.h>
diff --git
a/Projects/Incomplete/StandaloneProgrammer/Lib/DataflashManager.h
b/Projects/Incomplete/StandaloneProgrammer/Lib/DataflashManager.h
index
f470907
..
d353477
100644
(file)
--- a/
Projects/Incomplete/StandaloneProgrammer/Lib/DataflashManager.h
+++ b/
Projects/Incomplete/StandaloneProgrammer/Lib/DataflashManager.h
@@
-39,8
+39,8
@@
/* Includes: */
#include <avr/io.h>
/* Includes: */
#include <avr/io.h>
- #include "StandaloneProgrammer.h"
- #include "Descriptors.h"
+ #include "
../
StandaloneProgrammer.h"
+ #include "
../
Descriptors.h"
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Board/Dataflash.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Board/Dataflash.h>
diff --git
a/Projects/Incomplete/StandaloneProgrammer/Lib/SCSI.h
b/Projects/Incomplete/StandaloneProgrammer/Lib/SCSI.h
index
955a8fe
..
a0940a7
100644
(file)
--- a/
Projects/Incomplete/StandaloneProgrammer/Lib/SCSI.h
+++ b/
Projects/Incomplete/StandaloneProgrammer/Lib/SCSI.h
@@
-42,8
+42,8
@@
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/USB/USB.h>
- #include "StandaloneProgrammer.h"
- #include "Descriptors.h"
+ #include "
../
StandaloneProgrammer.h"
+ #include "
../
Descriptors.h"
#include "DataflashManager.h"
/* Macros: */
#include "DataflashManager.h"
/* Macros: */
diff --git
a/Projects/TempDataLogger/Lib/DataflashManager.h
b/Projects/TempDataLogger/Lib/DataflashManager.h
index
f93d505
..
5d598ca
100644
(file)
--- a/
Projects/TempDataLogger/Lib/DataflashManager.h
+++ b/
Projects/TempDataLogger/Lib/DataflashManager.h
@@
-39,8
+39,8
@@
/* Includes: */
#include <avr/io.h>
/* Includes: */
#include <avr/io.h>
- #include "TempDataLogger.h"
- #include "Descriptors.h"
+ #include "
../
TempDataLogger.h"
+ #include "
../
Descriptors.h"
#include <LUFA/Common/Common.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Common/Common.h>
#include <LUFA/Drivers/USB/USB.h>
diff --git
a/Projects/Webserver/Lib/DataflashManager.h
b/Projects/Webserver/Lib/DataflashManager.h
index
bdc27a2
..
af76f7f
100644
(file)
--- a/
Projects/Webserver/Lib/DataflashManager.h
+++ b/
Projects/Webserver/Lib/DataflashManager.h
@@
-39,7
+39,7
@@
/* Includes: */
#include <avr/io.h>
/* Includes: */
#include <avr/io.h>
- #include "Descriptors.h"
+ #include "
../
Descriptors.h"
#include <LUFA/Common/Common.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Common/Common.h>
#include <LUFA/Drivers/USB/USB.h>
diff --git
a/Projects/Webserver/Lib/uIPManagement.h
b/Projects/Webserver/Lib/uIPManagement.h
index
d51df09
..
390d3c4
100644
(file)
--- a/
Projects/Webserver/Lib/uIPManagement.h
+++ b/
Projects/Webserver/Lib/uIPManagement.h
@@
-44,10
+44,10
@@
#include <uip-split.h>
#include <timer.h>
#include <uip-split.h>
#include <timer.h>
- #include "
Lib/
DHCPClientApp.h"
- #include "
Lib/
DHCPServerApp.h"
- #include "
Lib/
HTTPServerApp.h"
- #include "
Lib/
TELNETServerApp.h"
+ #include "DHCPClientApp.h"
+ #include "DHCPServerApp.h"
+ #include "HTTPServerApp.h"
+ #include "TELNETServerApp.h"
/* Macros: */
/** IP address that the webserver should use once connected to a RNDIS device (when DHCP is disabled). */
/* Macros: */
/** IP address that the webserver should use once connected to a RNDIS device (when DHCP is disabled). */