pc-lint Questions

3

Solved

I'm facing MISRA C 2012 violation that I can't understand. Following is the code: #define I2C_CCRH_FS ((uint8_t)0x80) #define I2C_CCRH_DUTY ((uint8_t)0x40) #define I2C_CCRH_CCR ((uint8_t)0x0F) ty...
Technique asked 7/6, 2018 at 8:29

2

Solved

I am in the early stages of framing stuff out on a new project. I defined a function with a return type of "bool" I got this output from PC-Lint Including file sockets.h (hdr) bool sock_close(u...
Kathe asked 2/6, 2015 at 22:8

1

I have a project which includes a large third party library and am required to ensure that the project is lint-free. However, the library has several thousand errors. Modifying the library to remo...
Brahe asked 26/5, 2013 at 21:12

2

Solved

I played around with designated initializers a bit the other day and noticed, to my surprise, that it is valid to use the same index more than once. What's more, it didn't even produce a compiler w...
Rriocard asked 24/5, 2013 at 19:37

3

Solved

How to deal with this warning from PC Lint? I have in several files the #include <GenericTypeDefs.h>. PC Lint shows me the message Warning 537: Repeated include file 'filepath\filename.h' If...
Sessions asked 26/9, 2011 at 12:50

2

Solved

I'm using PC Lint for the first time. I was "linting" my code, when PC Lint warns me about my while(TRUE). This is what it says: 716: while(1) ... -- A construct of the form while(1) ... was fo...
Nepenthe asked 23/9, 2011 at 11:27

1

Solved

I've been using PC-Lint with MPLAB for a couple of years now and it has been really useful. MPLAB is about to change to be a netbeans based IDE and I've not found any netbeans plugins for PC-Lint. ...
Belding asked 20/7, 2011 at 10:42

2

Solved

When a C function does not accept any arguments, does it have to be declared/defined with a "void" parameter by the language rules? PC-Lint seems to have problems when there's nothing at all...
Pellucid asked 22/7, 2009 at 8:37
1

© 2022 - 2024 — McMap. All rights reserved.