Skip to content

Commit 1815741

Browse files
jonathangjertsenJonathan Reichelt GjertsenAniruddhaKanhere
authored
Supress spurious warnings from the CCS compiler (#444)
Co-authored-by: Jonathan Reichelt Gjertsen <[email protected]> Co-authored-by: Aniruddha Kanhere <[email protected]>
1 parent d837d90 commit 1815741

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

portable/Compiler/CCS/pack_struct_end.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
*
2424
* @brief: TI's Code Generation Tools do not add a trailing directive for packing structures
2525
*
26-
* Contains only a semicolon to end the wrapped structure
26+
* Contains a semicolon to end the wrapped structure,
27+
* and resets warnings that were supressed in pack_struct_start.h.
2728
*/
2829
;
30+
#pragma diag_pop

portable/Compiler/CCS/pack_struct_start.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,10 @@
2222
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2323
*
2424
* @brief: The leading compiler directive to pack the following structure to 1 byte
25+
*
26+
* Also suppress an incorrect warning from the CCS compiler:
27+
* error #1916-D: definition at end of file not followed by a semicolon or a declarator
2528
*/
29+
#pragma diag_push
30+
#pragma diag_suppress=1916
2631
#pragma pack(1)

portable/NetworkInterface/TM4C/TM4C-README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ This driver was written and tested using the Texas Instruments (TI) TM4C1294NCPD
55

66
This is a zero-copy driver uses the TivaWare ((C) TI) ROM function mapping macros, is intended for use with FreeRTOS+TCP BufferManagmeent_1, and is loosely modeled after the example lwIP Ethernet driver provided by TI in their TivaWare library. The driver utilizes the Ethernet (MAC) DMA engine.
77

8-
## Known Issues
9-
The configuration of vendor supplied tools and libraries used in this driver cause compiler warnings related to the Code Composer Studio ((C) TI) specific *pack_struct_start.h* and *pack_struct_end.h* port headers, though they appear to be benign. If there are suggestions for preventing these warnings, please let me know.
10-
118
## Vendor Provided Version Numbers Used
129
The following versions for tools/libraries were used during development and testing of this driver:
1310
- Code Composer Studio - 11.1.0.000111

0 commit comments

Comments
 (0)