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:
f4710f6
)
Disable strict aliasing explicitly in the project makefiles, as this is apparently...
author
Dean Camera
<dean@fourwalledcubicle.com>
Thu, 15 Jul 2010 17:13:33 +0000
(17:13 +0000)
committer
Dean Camera
<dean@fourwalledcubicle.com>
Thu, 15 Jul 2010 17:13:33 +0000
(17:13 +0000)
72 files changed:
Bootloaders/CDC/makefile
patch
|
blob
|
blame
|
history
Bootloaders/DFU/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/AudioInput/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/AudioOutput/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/DualVirtualSerial/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/GenericHID/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/Joystick/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/Keyboard/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/KeyboardMouse/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/MIDI/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/MassStorage/Lib/SCSI.c
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/MassStorage/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/MassStorageKeyboard/Lib/SCSI.c
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/MassStorageKeyboard/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/Mouse/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/RNDISEthernet/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/VirtualSerial/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/VirtualSerialMouse/makefile
patch
|
blob
|
blame
|
history
Demos/Device/Incomplete/Sideshow/makefile
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/AudioInput/makefile
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/AudioOutput/makefile
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/DualVirtualSerial/makefile
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/GenericHID/makefile
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/Joystick/makefile
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/Keyboard/makefile
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/KeyboardMouse/makefile
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/MIDI/makefile
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/MassStorage/Lib/SCSI.c
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/MassStorage/makefile
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/Mouse/makefile
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/RNDISEthernet/makefile
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/VirtualSerial/makefile
patch
|
blob
|
blame
|
history
Demos/DualRole/ClassDriver/MouseHostDevice/makefile
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/JoystickHostWithParser/makefile
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/KeyboardHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/KeyboardHostWithParser/makefile
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/MIDIHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/MassStorageHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/MouseHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/MouseHostWithParser/makefile
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/PrinterHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/RNDISEthernetHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/StillImageHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/VirtualSerialHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/Incomplete/BluetoothHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/GenericHIDHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/JoystickHostWithParser/makefile
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/KeyboardHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/KeyboardHostWithParser/makefile
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/MIDIHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/MassStorageHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/MouseHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/MouseHostWithParser/makefile
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/PrinterHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/RNDISEthernetHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/StillImageHost/makefile
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/VirtualSerialHost/makefile
patch
|
blob
|
blame
|
history
Projects/AVRISP-MKII/makefile
patch
|
blob
|
blame
|
history
Projects/Benito/makefile
patch
|
blob
|
blame
|
history
Projects/Incomplete/MIDIToneGenerator/makefile
patch
|
blob
|
blame
|
history
Projects/Incomplete/StandaloneProgrammer/Lib/SCSI.c
patch
|
blob
|
blame
|
history
Projects/Incomplete/StandaloneProgrammer/makefile
patch
|
blob
|
blame
|
history
Projects/LEDNotifier/makefile
patch
|
blob
|
blame
|
history
Projects/Magstripe/makefile
patch
|
blob
|
blame
|
history
Projects/MissileLauncher/makefile
patch
|
blob
|
blame
|
history
Projects/RelayBoard/makefile
patch
|
blob
|
blame
|
history
Projects/TempDataLogger/Lib/SCSI.c
patch
|
blob
|
blame
|
history
Projects/TempDataLogger/makefile
patch
|
blob
|
blame
|
history
Projects/USBtoSerial/makefile
patch
|
blob
|
blame
|
history
Projects/Webserver/Lib/SCSI.c
patch
|
blob
|
blame
|
history
Projects/Webserver/makefile
patch
|
blob
|
blame
|
history
Projects/XPLAINBridge/makefile
patch
|
blob
|
blame
|
history
diff --git
a/Bootloaders/CDC/makefile
b/Bootloaders/CDC/makefile
index
d6ad1ac
..
ddb90c0
100644
(file)
--- a/
Bootloaders/CDC/makefile
+++ b/
Bootloaders/CDC/makefile
@@
-211,6
+211,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Bootloaders/DFU/makefile
b/Bootloaders/DFU/makefile
index
ff033b3
..
909b3f7
100644
(file)
--- a/
Bootloaders/DFU/makefile
+++ b/
Bootloaders/DFU/makefile
@@
-213,6
+213,7
@@
CFLAGS += -fdata-sections
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Device/ClassDriver/AudioInput/makefile
b/Demos/Device/ClassDriver/AudioInput/makefile
index
bc94f66
..
13779aa
100644
(file)
--- a/
Demos/Device/ClassDriver/AudioInput/makefile
+++ b/
Demos/Device/ClassDriver/AudioInput/makefile
@@
-213,6
+213,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Device/ClassDriver/AudioOutput/makefile
b/Demos/Device/ClassDriver/AudioOutput/makefile
index
25200e4
..
7ce4dbf
100644
(file)
--- a/
Demos/Device/ClassDriver/AudioOutput/makefile
+++ b/
Demos/Device/ClassDriver/AudioOutput/makefile
@@
-214,6
+214,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Device/ClassDriver/DualVirtualSerial/makefile
b/Demos/Device/ClassDriver/DualVirtualSerial/makefile
index
c0d0e5a
..
cc39c9e
100644
(file)
--- a/
Demos/Device/ClassDriver/DualVirtualSerial/makefile
+++ b/
Demos/Device/ClassDriver/DualVirtualSerial/makefile
@@
-214,6
+214,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Device/ClassDriver/GenericHID/makefile
b/Demos/Device/ClassDriver/GenericHID/makefile
index
b81f110
..
528ffa4
100644
(file)
--- a/
Demos/Device/ClassDriver/GenericHID/makefile
+++ b/
Demos/Device/ClassDriver/GenericHID/makefile
@@
-215,6
+215,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Device/ClassDriver/Joystick/makefile
b/Demos/Device/ClassDriver/Joystick/makefile
index
27967df
..
623856b
100644
(file)
--- a/
Demos/Device/ClassDriver/Joystick/makefile
+++ b/
Demos/Device/ClassDriver/Joystick/makefile
@@
-215,6
+215,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Device/ClassDriver/Keyboard/makefile
b/Demos/Device/ClassDriver/Keyboard/makefile
index
90599fb
..
597dc44
100644
(file)
--- a/
Demos/Device/ClassDriver/Keyboard/makefile
+++ b/
Demos/Device/ClassDriver/Keyboard/makefile
@@
-215,6
+215,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Device/ClassDriver/KeyboardMouse/makefile
b/Demos/Device/ClassDriver/KeyboardMouse/makefile
index
597fde4
..
3053be8
100644
(file)
--- a/
Demos/Device/ClassDriver/KeyboardMouse/makefile
+++ b/
Demos/Device/ClassDriver/KeyboardMouse/makefile
@@
-215,6
+215,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Device/ClassDriver/MIDI/makefile
b/Demos/Device/ClassDriver/MIDI/makefile
index
5da65fd
..
72f963d
100644
(file)
--- a/
Demos/Device/ClassDriver/MIDI/makefile
+++ b/
Demos/Device/ClassDriver/MIDI/makefile
@@
-213,6
+213,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Device/ClassDriver/MassStorage/Lib/SCSI.c
b/Demos/Device/ClassDriver/MassStorage/Lib/SCSI.c
index
35d5b59
..
f0796ea
100644
(file)
--- a/
Demos/Device/ClassDriver/MassStorage/Lib/SCSI.c
+++ b/
Demos/Device/ClassDriver/MassStorage/Lib/SCSI.c
@@
-138,7
+138,7
@@
bool SCSI_DecodeSCSICommand(USB_ClassInfo_MS_Device_t* MSInterfaceInfo)
*/
static void SCSI_Command_Inquiry(USB_ClassInfo_MS_Device_t* MSInterfaceInfo)
{
*/
static void SCSI_Command_Inquiry(USB_ClassInfo_MS_Device_t* MSInterfaceInfo)
{
- uint16_t AllocationLength = SwapEndian_16(*(uint
32
_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[3]);
+ uint16_t AllocationLength = SwapEndian_16(*(uint
16
_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[3]);
uint16_t BytesTransferred = (AllocationLength < sizeof(InquiryData))? AllocationLength :
sizeof(InquiryData);
uint16_t BytesTransferred = (AllocationLength < sizeof(InquiryData))? AllocationLength :
sizeof(InquiryData);
@@
-256,7
+256,7
@@
static void SCSI_Command_ReadWrite_10(USB_ClassInfo_MS_Device_t* MSInterfaceInfo
BlockAddress = SwapEndian_32(*(uint32_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[2]);
/* Load in the 16-bit total blocks (SCSI uses big-endian, so have to reverse the byte order) */
BlockAddress = SwapEndian_32(*(uint32_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[2]);
/* Load in the 16-bit total blocks (SCSI uses big-endian, so have to reverse the byte order) */
- TotalBlocks = SwapEndian_16(*(uint
32
_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[7]);
+ TotalBlocks = SwapEndian_16(*(uint
16
_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[7]);
/* Check if the block address is outside the maximum allowable value for the LUN */
if (BlockAddress >= LUN_MEDIA_BLOCKS)
/* Check if the block address is outside the maximum allowable value for the LUN */
if (BlockAddress >= LUN_MEDIA_BLOCKS)
diff --git
a/Demos/Device/ClassDriver/MassStorage/makefile
b/Demos/Device/ClassDriver/MassStorage/makefile
index
e94193a
..
47be38d
100644
(file)
--- a/
Demos/Device/ClassDriver/MassStorage/makefile
+++ b/
Demos/Device/ClassDriver/MassStorage/makefile
@@
-217,6
+217,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Device/ClassDriver/MassStorageKeyboard/Lib/SCSI.c
b/Demos/Device/ClassDriver/MassStorageKeyboard/Lib/SCSI.c
index
15955a7
..
35a0ea7
100644
(file)
--- a/
Demos/Device/ClassDriver/MassStorageKeyboard/Lib/SCSI.c
+++ b/
Demos/Device/ClassDriver/MassStorageKeyboard/Lib/SCSI.c
@@
-148,7
+148,7
@@
bool SCSI_DecodeSCSICommand(USB_ClassInfo_MS_Device_t* MSInterfaceInfo)
*/
static bool SCSI_Command_Inquiry(USB_ClassInfo_MS_Device_t* MSInterfaceInfo)
{
*/
static bool SCSI_Command_Inquiry(USB_ClassInfo_MS_Device_t* MSInterfaceInfo)
{
- uint16_t AllocationLength = SwapEndian_16(*(uint
32
_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[3]);
+ uint16_t AllocationLength = SwapEndian_16(*(uint
16
_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[3]);
uint16_t BytesTransferred = (AllocationLength < sizeof(InquiryData))? AllocationLength :
sizeof(InquiryData);
uint16_t BytesTransferred = (AllocationLength < sizeof(InquiryData))? AllocationLength :
sizeof(InquiryData);
@@
-309,7
+309,7
@@
static bool SCSI_Command_ReadWrite_10(USB_ClassInfo_MS_Device_t* MSInterfaceInfo
BlockAddress = SwapEndian_32(*(uint32_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[2]);
/* Load in the 16-bit total blocks (SCSI uses big-endian, so have to reverse the byte order) */
BlockAddress = SwapEndian_32(*(uint32_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[2]);
/* Load in the 16-bit total blocks (SCSI uses big-endian, so have to reverse the byte order) */
- TotalBlocks = SwapEndian_16(*(uint
32
_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[7]);
+ TotalBlocks = SwapEndian_16(*(uint
16
_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[7]);
/* Check if the block address is outside the maximum allowable value for the LUN */
if (BlockAddress >= LUN_MEDIA_BLOCKS)
/* Check if the block address is outside the maximum allowable value for the LUN */
if (BlockAddress >= LUN_MEDIA_BLOCKS)
diff --git
a/Demos/Device/ClassDriver/MassStorageKeyboard/makefile
b/Demos/Device/ClassDriver/MassStorageKeyboard/makefile
index
928aa0e
..
16d6712
100644
(file)
--- a/
Demos/Device/ClassDriver/MassStorageKeyboard/makefile
+++ b/
Demos/Device/ClassDriver/MassStorageKeyboard/makefile
@@
-224,9
+224,10
@@
CFLAGS += -O$(OPT)
CFLAGS += -funsigned-char
CFLAGS += -funsigned-bitfields
CFLAGS += -ffunction-sections
CFLAGS += -funsigned-char
CFLAGS += -funsigned-bitfields
CFLAGS += -ffunction-sections
+CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
-CFLAGS += -f
inline-limit=20
+CFLAGS += -f
no-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Device/ClassDriver/Mouse/makefile
b/Demos/Device/ClassDriver/Mouse/makefile
index
81e7be7
..
9d5ba54
100644
(file)
--- a/
Demos/Device/ClassDriver/Mouse/makefile
+++ b/
Demos/Device/ClassDriver/Mouse/makefile
@@
-215,6
+215,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
#CFLAGS += -mshort-calls
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
#CFLAGS += -mshort-calls
diff --git
a/Demos/Device/ClassDriver/RNDISEthernet/makefile
b/Demos/Device/ClassDriver/RNDISEthernet/makefile
index
c2a8f30
..
3cca063
100644
(file)
--- a/
Demos/Device/ClassDriver/RNDISEthernet/makefile
+++ b/
Demos/Device/ClassDriver/RNDISEthernet/makefile
@@
-226,6
+226,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Device/ClassDriver/VirtualSerial/makefile
b/Demos/Device/ClassDriver/VirtualSerial/makefile
index
bcde149
..
7ad4596
100644
(file)
--- a/
Demos/Device/ClassDriver/VirtualSerial/makefile
+++ b/
Demos/Device/ClassDriver/VirtualSerial/makefile
@@
-214,6
+214,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Device/ClassDriver/VirtualSerialMouse/makefile
b/Demos/Device/ClassDriver/VirtualSerialMouse/makefile
index
c204d62
..
7398cb6
100644
(file)
--- a/
Demos/Device/ClassDriver/VirtualSerialMouse/makefile
+++ b/
Demos/Device/ClassDriver/VirtualSerialMouse/makefile
@@
-216,6
+216,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Device/Incomplete/Sideshow/makefile
b/Demos/Device/Incomplete/Sideshow/makefile
index
53a11d2
..
7c0985c
100644
(file)
--- a/
Demos/Device/Incomplete/Sideshow/makefile
+++ b/
Demos/Device/Incomplete/Sideshow/makefile
@@
-219,6
+219,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Device/LowLevel/AudioInput/makefile
b/Demos/Device/LowLevel/AudioInput/makefile
index
e143e8f
..
097b50a
100644
(file)
--- a/
Demos/Device/LowLevel/AudioInput/makefile
+++ b/
Demos/Device/LowLevel/AudioInput/makefile
@@
-213,6
+213,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Device/LowLevel/AudioOutput/makefile
b/Demos/Device/LowLevel/AudioOutput/makefile
index
a6a93c1
..
4f40181
100644
(file)
--- a/
Demos/Device/LowLevel/AudioOutput/makefile
+++ b/
Demos/Device/LowLevel/AudioOutput/makefile
@@
-214,6
+214,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Device/LowLevel/DualVirtualSerial/makefile
b/Demos/Device/LowLevel/DualVirtualSerial/makefile
index
42feb0d
..
5e39dd3
100644
(file)
--- a/
Demos/Device/LowLevel/DualVirtualSerial/makefile
+++ b/
Demos/Device/LowLevel/DualVirtualSerial/makefile
@@
-213,6
+213,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Device/LowLevel/GenericHID/makefile
b/Demos/Device/LowLevel/GenericHID/makefile
index
48c68ed
..
5a9d114
100644
(file)
--- a/
Demos/Device/LowLevel/GenericHID/makefile
+++ b/
Demos/Device/LowLevel/GenericHID/makefile
@@
-213,6
+213,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Device/LowLevel/Joystick/makefile
b/Demos/Device/LowLevel/Joystick/makefile
index
11f3fa3
..
1dfd71c
100644
(file)
--- a/
Demos/Device/LowLevel/Joystick/makefile
+++ b/
Demos/Device/LowLevel/Joystick/makefile
@@
-213,6
+213,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Device/LowLevel/Keyboard/makefile
b/Demos/Device/LowLevel/Keyboard/makefile
index
4c23fa9
..
6783aaa
100644
(file)
--- a/
Demos/Device/LowLevel/Keyboard/makefile
+++ b/
Demos/Device/LowLevel/Keyboard/makefile
@@
-213,6
+213,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Device/LowLevel/KeyboardMouse/makefile
b/Demos/Device/LowLevel/KeyboardMouse/makefile
index
ca51e50
..
ffa6c2d
100644
(file)
--- a/
Demos/Device/LowLevel/KeyboardMouse/makefile
+++ b/
Demos/Device/LowLevel/KeyboardMouse/makefile
@@
-213,6
+213,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Device/LowLevel/MIDI/makefile
b/Demos/Device/LowLevel/MIDI/makefile
index
a9985db
..
ffcd08b
100644
(file)
--- a/
Demos/Device/LowLevel/MIDI/makefile
+++ b/
Demos/Device/LowLevel/MIDI/makefile
@@
-213,6
+213,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Device/LowLevel/MassStorage/Lib/SCSI.c
b/Demos/Device/LowLevel/MassStorage/Lib/SCSI.c
index
46c71c3
..
05c9265
100644
(file)
--- a/
Demos/Device/LowLevel/MassStorage/Lib/SCSI.c
+++ b/
Demos/Device/LowLevel/MassStorage/Lib/SCSI.c
@@
-136,7
+136,7
@@
bool SCSI_DecodeSCSICommand(void)
*/
static void SCSI_Command_Inquiry(void)
{
*/
static void SCSI_Command_Inquiry(void)
{
- uint16_t AllocationLength = SwapEndian_16(*(uint
32
_t*)&CommandBlock.SCSICommandData[3]);
+ uint16_t AllocationLength = SwapEndian_16(*(uint
16
_t*)&CommandBlock.SCSICommandData[3]);
uint16_t BytesTransferred = (AllocationLength < sizeof(InquiryData))? AllocationLength :
sizeof(InquiryData);
uint16_t BytesTransferred = (AllocationLength < sizeof(InquiryData))? AllocationLength :
sizeof(InquiryData);
@@
-259,7
+259,7
@@
static void SCSI_Command_ReadWrite_10(const bool IsDataRead)
BlockAddress = SwapEndian_32(*(uint32_t*)&CommandBlock.SCSICommandData[2]);
/* Load in the 16-bit total blocks (SCSI uses big-endian, so have to reverse the byte order) */
BlockAddress = SwapEndian_32(*(uint32_t*)&CommandBlock.SCSICommandData[2]);
/* Load in the 16-bit total blocks (SCSI uses big-endian, so have to reverse the byte order) */
- TotalBlocks = SwapEndian_16(*(uint
32
_t*)&CommandBlock.SCSICommandData[7]);
+ TotalBlocks = SwapEndian_16(*(uint
16
_t*)&CommandBlock.SCSICommandData[7]);
/* Check if the block address is outside the maximum allowable value for the LUN */
if (BlockAddress >= LUN_MEDIA_BLOCKS)
/* Check if the block address is outside the maximum allowable value for the LUN */
if (BlockAddress >= LUN_MEDIA_BLOCKS)
diff --git
a/Demos/Device/LowLevel/MassStorage/makefile
b/Demos/Device/LowLevel/MassStorage/makefile
index
6d0163d
..
1680e50
100644
(file)
--- a/
Demos/Device/LowLevel/MassStorage/makefile
+++ b/
Demos/Device/LowLevel/MassStorage/makefile
@@
-215,6
+215,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Device/LowLevel/Mouse/makefile
b/Demos/Device/LowLevel/Mouse/makefile
index
27a9718
..
75b6a35
100644
(file)
--- a/
Demos/Device/LowLevel/Mouse/makefile
+++ b/
Demos/Device/LowLevel/Mouse/makefile
@@
-212,6
+212,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
#CFLAGS += -mshort-calls
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
#CFLAGS += -mshort-calls
diff --git
a/Demos/Device/LowLevel/RNDISEthernet/makefile
b/Demos/Device/LowLevel/RNDISEthernet/makefile
index
883e8a5
..
f44e60a
100644
(file)
--- a/
Demos/Device/LowLevel/RNDISEthernet/makefile
+++ b/
Demos/Device/LowLevel/RNDISEthernet/makefile
@@
-226,6
+226,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Device/LowLevel/VirtualSerial/makefile
b/Demos/Device/LowLevel/VirtualSerial/makefile
index
9cfd865
..
32d3a4b
100644
(file)
--- a/
Demos/Device/LowLevel/VirtualSerial/makefile
+++ b/
Demos/Device/LowLevel/VirtualSerial/makefile
@@
-210,9
+210,10
@@
CFLAGS += -O$(OPT)
CFLAGS += -funsigned-char
CFLAGS += -funsigned-bitfields
CFLAGS += -ffunction-sections
CFLAGS += -funsigned-char
CFLAGS += -funsigned-bitfields
CFLAGS += -ffunction-sections
+CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
-CFLAGS += -f
inline-limit=20
+CFLAGS += -f
no-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/DualRole/ClassDriver/MouseHostDevice/makefile
b/Demos/DualRole/ClassDriver/MouseHostDevice/makefile
index
0bbf98c
..
bf18033
100644
(file)
--- a/
Demos/DualRole/ClassDriver/MouseHostDevice/makefile
+++ b/
Demos/DualRole/ClassDriver/MouseHostDevice/makefile
@@
-218,6
+218,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Host/ClassDriver/JoystickHostWithParser/makefile
b/Demos/Host/ClassDriver/JoystickHostWithParser/makefile
index
44b1325
..
0d05970
100644
(file)
--- a/
Demos/Host/ClassDriver/JoystickHostWithParser/makefile
+++ b/
Demos/Host/ClassDriver/JoystickHostWithParser/makefile
@@
-213,6
+213,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Host/ClassDriver/KeyboardHost/makefile
b/Demos/Host/ClassDriver/KeyboardHost/makefile
index
6416f78
..
80da1aa
100644
(file)
--- a/
Demos/Host/ClassDriver/KeyboardHost/makefile
+++ b/
Demos/Host/ClassDriver/KeyboardHost/makefile
@@
-213,6
+213,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Host/ClassDriver/KeyboardHostWithParser/makefile
b/Demos/Host/ClassDriver/KeyboardHostWithParser/makefile
index
b9bac6c
..
a6ec354
100644
(file)
--- a/
Demos/Host/ClassDriver/KeyboardHostWithParser/makefile
+++ b/
Demos/Host/ClassDriver/KeyboardHostWithParser/makefile
@@
-213,6
+213,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Host/ClassDriver/MIDIHost/makefile
b/Demos/Host/ClassDriver/MIDIHost/makefile
index
48227a2
..
598b82f
100644
(file)
--- a/
Demos/Host/ClassDriver/MIDIHost/makefile
+++ b/
Demos/Host/ClassDriver/MIDIHost/makefile
@@
-212,6
+212,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Host/ClassDriver/MassStorageHost/makefile
b/Demos/Host/ClassDriver/MassStorageHost/makefile
index
e0fb282
..
abf2ba0
100644
(file)
--- a/
Demos/Host/ClassDriver/MassStorageHost/makefile
+++ b/
Demos/Host/ClassDriver/MassStorageHost/makefile
@@
-213,6
+213,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Host/ClassDriver/MouseHost/makefile
b/Demos/Host/ClassDriver/MouseHost/makefile
index
489b215
..
8f31be5
100644
(file)
--- a/
Demos/Host/ClassDriver/MouseHost/makefile
+++ b/
Demos/Host/ClassDriver/MouseHost/makefile
@@
-213,6
+213,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Host/ClassDriver/MouseHostWithParser/makefile
b/Demos/Host/ClassDriver/MouseHostWithParser/makefile
index
0a432c4
..
d1e3c2e
100644
(file)
--- a/
Demos/Host/ClassDriver/MouseHostWithParser/makefile
+++ b/
Demos/Host/ClassDriver/MouseHostWithParser/makefile
@@
-213,6
+213,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Host/ClassDriver/PrinterHost/makefile
b/Demos/Host/ClassDriver/PrinterHost/makefile
index
ebed083
..
5e4eec3
100644
(file)
--- a/
Demos/Host/ClassDriver/PrinterHost/makefile
+++ b/
Demos/Host/ClassDriver/PrinterHost/makefile
@@
-211,6
+211,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Host/ClassDriver/RNDISEthernetHost/makefile
b/Demos/Host/ClassDriver/RNDISEthernetHost/makefile
index
e001745
..
a2b408c
100644
(file)
--- a/
Demos/Host/ClassDriver/RNDISEthernetHost/makefile
+++ b/
Demos/Host/ClassDriver/RNDISEthernetHost/makefile
@@
-212,6
+212,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Host/ClassDriver/StillImageHost/makefile
b/Demos/Host/ClassDriver/StillImageHost/makefile
index
0f4c060
..
0ef59bd
100644
(file)
--- a/
Demos/Host/ClassDriver/StillImageHost/makefile
+++ b/
Demos/Host/ClassDriver/StillImageHost/makefile
@@
-211,6
+211,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Host/ClassDriver/VirtualSerialHost/makefile
b/Demos/Host/ClassDriver/VirtualSerialHost/makefile
index
da4565e
..
1d0c2bd
100644
(file)
--- a/
Demos/Host/ClassDriver/VirtualSerialHost/makefile
+++ b/
Demos/Host/ClassDriver/VirtualSerialHost/makefile
@@
-212,6
+212,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Host/Incomplete/BluetoothHost/makefile
b/Demos/Host/Incomplete/BluetoothHost/makefile
index
d26cc64
..
0d226e9
100644
(file)
--- a/
Demos/Host/Incomplete/BluetoothHost/makefile
+++ b/
Demos/Host/Incomplete/BluetoothHost/makefile
@@
-228,6
+228,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Host/LowLevel/GenericHIDHost/makefile
b/Demos/Host/LowLevel/GenericHIDHost/makefile
index
43b75c9
..
7bfc85a
100644
(file)
--- a/
Demos/Host/LowLevel/GenericHIDHost/makefile
+++ b/
Demos/Host/LowLevel/GenericHIDHost/makefile
@@
-213,6
+213,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Host/LowLevel/JoystickHostWithParser/makefile
b/Demos/Host/LowLevel/JoystickHostWithParser/makefile
index
6c46a61
..
f417cbd
100644
(file)
--- a/
Demos/Host/LowLevel/JoystickHostWithParser/makefile
+++ b/
Demos/Host/LowLevel/JoystickHostWithParser/makefile
@@
-214,6
+214,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Host/LowLevel/KeyboardHost/makefile
b/Demos/Host/LowLevel/KeyboardHost/makefile
index
b5666ad
..
c777b40
100644
(file)
--- a/
Demos/Host/LowLevel/KeyboardHost/makefile
+++ b/
Demos/Host/LowLevel/KeyboardHost/makefile
@@
-212,6
+212,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Host/LowLevel/KeyboardHostWithParser/makefile
b/Demos/Host/LowLevel/KeyboardHostWithParser/makefile
index
09fbb54
..
1bc1e00
100644
(file)
--- a/
Demos/Host/LowLevel/KeyboardHostWithParser/makefile
+++ b/
Demos/Host/LowLevel/KeyboardHostWithParser/makefile
@@
-214,6
+214,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Host/LowLevel/MIDIHost/makefile
b/Demos/Host/LowLevel/MIDIHost/makefile
index
f576744
..
406337a
100644
(file)
--- a/
Demos/Host/LowLevel/MIDIHost/makefile
+++ b/
Demos/Host/LowLevel/MIDIHost/makefile
@@
-212,6
+212,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Host/LowLevel/MassStorageHost/makefile
b/Demos/Host/LowLevel/MassStorageHost/makefile
index
f512e2d
..
d6db628
100644
(file)
--- a/
Demos/Host/LowLevel/MassStorageHost/makefile
+++ b/
Demos/Host/LowLevel/MassStorageHost/makefile
@@
-214,6
+214,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Host/LowLevel/MouseHost/makefile
b/Demos/Host/LowLevel/MouseHost/makefile
index
8c367b0
..
5cbec3d
100644
(file)
--- a/
Demos/Host/LowLevel/MouseHost/makefile
+++ b/
Demos/Host/LowLevel/MouseHost/makefile
@@
-212,6
+212,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Host/LowLevel/MouseHostWithParser/makefile
b/Demos/Host/LowLevel/MouseHostWithParser/makefile
index
712d995
..
26f49ad
100644
(file)
--- a/
Demos/Host/LowLevel/MouseHostWithParser/makefile
+++ b/
Demos/Host/LowLevel/MouseHostWithParser/makefile
@@
-214,6
+214,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Host/LowLevel/PrinterHost/makefile
b/Demos/Host/LowLevel/PrinterHost/makefile
index
c112108
..
01e5ec5
100644
(file)
--- a/
Demos/Host/LowLevel/PrinterHost/makefile
+++ b/
Demos/Host/LowLevel/PrinterHost/makefile
@@
-213,6
+213,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Host/LowLevel/RNDISEthernetHost/makefile
b/Demos/Host/LowLevel/RNDISEthernetHost/makefile
index
5d8bf06
..
ee5454c
100644
(file)
--- a/
Demos/Host/LowLevel/RNDISEthernetHost/makefile
+++ b/
Demos/Host/LowLevel/RNDISEthernetHost/makefile
@@
-213,6
+213,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Host/LowLevel/StillImageHost/makefile
b/Demos/Host/LowLevel/StillImageHost/makefile
index
c9a2c1d
..
70c5aae
100644
(file)
--- a/
Demos/Host/LowLevel/StillImageHost/makefile
+++ b/
Demos/Host/LowLevel/StillImageHost/makefile
@@
-213,6
+213,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Demos/Host/LowLevel/VirtualSerialHost/makefile
b/Demos/Host/LowLevel/VirtualSerialHost/makefile
index
f72fae4
..
812834f
100644
(file)
--- a/
Demos/Host/LowLevel/VirtualSerialHost/makefile
+++ b/
Demos/Host/LowLevel/VirtualSerialHost/makefile
@@
-212,6
+212,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Projects/AVRISP-MKII/makefile
b/Projects/AVRISP-MKII/makefile
index
4ca9568
..
f4f1893
100644
(file)
--- a/
Projects/AVRISP-MKII/makefile
+++ b/
Projects/AVRISP-MKII/makefile
@@
-234,6
+234,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Projects/Benito/makefile
b/Projects/Benito/makefile
index
256098e
..
1af674d
100644
(file)
--- a/
Projects/Benito/makefile
+++ b/
Projects/Benito/makefile
@@
-219,6
+219,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Projects/Incomplete/MIDIToneGenerator/makefile
b/Projects/Incomplete/MIDIToneGenerator/makefile
index
0ac97d2
..
bda5faf
100644
(file)
--- a/
Projects/Incomplete/MIDIToneGenerator/makefile
+++ b/
Projects/Incomplete/MIDIToneGenerator/makefile
@@
-213,6
+213,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Projects/Incomplete/StandaloneProgrammer/Lib/SCSI.c
b/Projects/Incomplete/StandaloneProgrammer/Lib/SCSI.c
index
c1b106c
..
f69ab64
100644
(file)
--- a/
Projects/Incomplete/StandaloneProgrammer/Lib/SCSI.c
+++ b/
Projects/Incomplete/StandaloneProgrammer/Lib/SCSI.c
@@
-139,7
+139,7
@@
bool SCSI_DecodeSCSICommand(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo)
*/
static void SCSI_Command_Inquiry(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo)
{
*/
static void SCSI_Command_Inquiry(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo)
{
- uint16_t AllocationLength = SwapEndian_16(*(uint
32
_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[3]);
+ uint16_t AllocationLength = SwapEndian_16(*(uint
16
_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[3]);
uint16_t BytesTransferred = (AllocationLength < sizeof(InquiryData))? AllocationLength :
sizeof(InquiryData);
uint16_t BytesTransferred = (AllocationLength < sizeof(InquiryData))? AllocationLength :
sizeof(InquiryData);
@@
-257,7
+257,7
@@
static void SCSI_Command_ReadWrite_10(USB_ClassInfo_MS_Device_t* const MSInterfa
BlockAddress = SwapEndian_32(*(uint32_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[2]);
/* Load in the 16-bit total blocks (SCSI uses big-endian, so have to reverse the byte order) */
BlockAddress = SwapEndian_32(*(uint32_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[2]);
/* Load in the 16-bit total blocks (SCSI uses big-endian, so have to reverse the byte order) */
- TotalBlocks = SwapEndian_16(*(uint
32
_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[7]);
+ TotalBlocks = SwapEndian_16(*(uint
16
_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[7]);
/* Check if the block address is outside the maximum allowable value for the LUN */
if (BlockAddress >= VIRTUAL_MEMORY_BLOCKS)
/* Check if the block address is outside the maximum allowable value for the LUN */
if (BlockAddress >= VIRTUAL_MEMORY_BLOCKS)
diff --git
a/Projects/Incomplete/StandaloneProgrammer/makefile
b/Projects/Incomplete/StandaloneProgrammer/makefile
index
ac80cc6
..
507c904
100644
(file)
--- a/
Projects/Incomplete/StandaloneProgrammer/makefile
+++ b/
Projects/Incomplete/StandaloneProgrammer/makefile
@@
-223,6
+223,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Projects/LEDNotifier/makefile
b/Projects/LEDNotifier/makefile
index
805dac4
..
5b3e476
100644
(file)
--- a/
Projects/LEDNotifier/makefile
+++ b/
Projects/LEDNotifier/makefile
@@
-214,6
+214,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Projects/Magstripe/makefile
b/Projects/Magstripe/makefile
index
8342466
..
d6f2bd0
100644
(file)
--- a/
Projects/Magstripe/makefile
+++ b/
Projects/Magstripe/makefile
@@
-220,10
+220,11
@@
CFLAGS += $(CDEFS)
CFLAGS += -O$(OPT)
CFLAGS += -funsigned-char
CFLAGS += -funsigned-bitfields
CFLAGS += -O$(OPT)
CFLAGS += -funsigned-char
CFLAGS += -funsigned-bitfields
+CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
-CFLAGS += -f
function-sections
+CFLAGS += -f
no-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Projects/MissileLauncher/makefile
b/Projects/MissileLauncher/makefile
index
831469b
..
c381803
100644
(file)
--- a/
Projects/MissileLauncher/makefile
+++ b/
Projects/MissileLauncher/makefile
@@
-213,6
+213,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Projects/RelayBoard/makefile
b/Projects/RelayBoard/makefile
index
6758446
..
b64169a
100644
(file)
--- a/
Projects/RelayBoard/makefile
+++ b/
Projects/RelayBoard/makefile
@@
-208,10
+208,11
@@
CFLAGS += $(CDEFS)
CFLAGS += -O$(OPT)
CFLAGS += -funsigned-char
CFLAGS += -funsigned-bitfields
CFLAGS += -O$(OPT)
CFLAGS += -funsigned-char
CFLAGS += -funsigned-bitfields
+CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
-CFLAGS += -f
function-sections
+CFLAGS += -f
no-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Projects/TempDataLogger/Lib/SCSI.c
b/Projects/TempDataLogger/Lib/SCSI.c
index
5606ac7
..
7bb66d3
100644
(file)
--- a/
Projects/TempDataLogger/Lib/SCSI.c
+++ b/
Projects/TempDataLogger/Lib/SCSI.c
@@
-138,7
+138,7
@@
bool SCSI_DecodeSCSICommand(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo)
*/
static void SCSI_Command_Inquiry(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo)
{
*/
static void SCSI_Command_Inquiry(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo)
{
- uint16_t AllocationLength = SwapEndian_16(*(uint
32
_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[3]);
+ uint16_t AllocationLength = SwapEndian_16(*(uint
16
_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[3]);
uint16_t BytesTransferred = (AllocationLength < sizeof(InquiryData))? AllocationLength :
sizeof(InquiryData);
uint16_t BytesTransferred = (AllocationLength < sizeof(InquiryData))? AllocationLength :
sizeof(InquiryData);
@@
-256,7
+256,7
@@
static void SCSI_Command_ReadWrite_10(USB_ClassInfo_MS_Device_t* const MSInterfa
BlockAddress = SwapEndian_32(*(uint32_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[2]);
/* Load in the 16-bit total blocks (SCSI uses big-endian, so have to reverse the byte order) */
BlockAddress = SwapEndian_32(*(uint32_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[2]);
/* Load in the 16-bit total blocks (SCSI uses big-endian, so have to reverse the byte order) */
- TotalBlocks = SwapEndian_16(*(uint
32
_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[7]);
+ TotalBlocks = SwapEndian_16(*(uint
16
_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[7]);
/* Check if the block address is outside the maximum allowable value for the LUN */
if (BlockAddress >= VIRTUAL_MEMORY_BLOCKS)
/* Check if the block address is outside the maximum allowable value for the LUN */
if (BlockAddress >= VIRTUAL_MEMORY_BLOCKS)
diff --git
a/Projects/TempDataLogger/makefile
b/Projects/TempDataLogger/makefile
index
6e865eb
..
65e483a
100644
(file)
--- a/
Projects/TempDataLogger/makefile
+++ b/
Projects/TempDataLogger/makefile
@@
-225,6
+225,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Projects/USBtoSerial/makefile
b/Projects/USBtoSerial/makefile
index
1960169
..
bb64484
100644
(file)
--- a/
Projects/USBtoSerial/makefile
+++ b/
Projects/USBtoSerial/makefile
@@
-214,6
+214,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Projects/Webserver/Lib/SCSI.c
b/Projects/Webserver/Lib/SCSI.c
index
5606ac7
..
7bb66d3
100644
(file)
--- a/
Projects/Webserver/Lib/SCSI.c
+++ b/
Projects/Webserver/Lib/SCSI.c
@@
-138,7
+138,7
@@
bool SCSI_DecodeSCSICommand(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo)
*/
static void SCSI_Command_Inquiry(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo)
{
*/
static void SCSI_Command_Inquiry(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo)
{
- uint16_t AllocationLength = SwapEndian_16(*(uint
32
_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[3]);
+ uint16_t AllocationLength = SwapEndian_16(*(uint
16
_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[3]);
uint16_t BytesTransferred = (AllocationLength < sizeof(InquiryData))? AllocationLength :
sizeof(InquiryData);
uint16_t BytesTransferred = (AllocationLength < sizeof(InquiryData))? AllocationLength :
sizeof(InquiryData);
@@
-256,7
+256,7
@@
static void SCSI_Command_ReadWrite_10(USB_ClassInfo_MS_Device_t* const MSInterfa
BlockAddress = SwapEndian_32(*(uint32_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[2]);
/* Load in the 16-bit total blocks (SCSI uses big-endian, so have to reverse the byte order) */
BlockAddress = SwapEndian_32(*(uint32_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[2]);
/* Load in the 16-bit total blocks (SCSI uses big-endian, so have to reverse the byte order) */
- TotalBlocks = SwapEndian_16(*(uint
32
_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[7]);
+ TotalBlocks = SwapEndian_16(*(uint
16
_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[7]);
/* Check if the block address is outside the maximum allowable value for the LUN */
if (BlockAddress >= VIRTUAL_MEMORY_BLOCKS)
/* Check if the block address is outside the maximum allowable value for the LUN */
if (BlockAddress >= VIRTUAL_MEMORY_BLOCKS)
diff --git
a/Projects/Webserver/makefile
b/Projects/Webserver/makefile
index
643039c
..
e9a37ff
100644
(file)
--- a/
Projects/Webserver/makefile
+++ b/
Projects/Webserver/makefile
@@
-238,6
+238,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
diff --git
a/Projects/XPLAINBridge/makefile
b/Projects/XPLAINBridge/makefile
index
c2bff7e
..
9df8d1b
100644
(file)
--- a/
Projects/XPLAINBridge/makefile
+++ b/
Projects/XPLAINBridge/makefile
@@
-236,6
+236,7
@@
CFLAGS += -ffunction-sections
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct
CFLAGS += -fshort-enums
+CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef