-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlintdefs.cpp
37 lines (28 loc) · 1.7 KB
/
lintdefs.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//**********************************************************************
// Copyright (c) 2009-2023 Daniel D Miller
// lintdefs.cpp: PcLint rules for DerBar utility
// This file is not linked into the project,
// it is only used for running Lint on the sources
//**********************************************************************
//lint -e10 Expecting '}' even though nothing is wrong with the code
//lint -e840 Use of nul character in a string literal (is quite common)
//lint -e845 The right argument to operator '|' is certain to be 0
//lint -e1762 Member function could be made const
//lint -e1066 Symbol declared as "C" conflicts with something else that's identical
//lint -esym(119, strtod)
// case NM_CLICK:
//lint -e650 Constant '-2' out of range for operator 'case'
//lint -e731 Boolean argument to equal/not equal
//lint -e801 Use of goto is deprecated
//lint -e818 Pointer parameter could be declared as pointing to const
//lint -e1776 Converting a string literal to char * is not const safe (arg. no. 2)
//lint -e1773 Attempt to cast away const (or volatile)
//lint -e730 Boolean argument to function that takes boolean argument (duh)
//lint -e534 Ignoring return value of function
//lint -e768 global struct member not referenced
//lint -e755 global macro not referenced
//lint -e1714 Member function not referenced
// rules that should be put back later, when I'm feeling really anal.
// Generally, these are warnings about things that the compiler knows how to handle.
//lint -e713 Loss of precision (assignment) (unsigned int to int) (123 warnings left)
//lint -e732 Loss of sign (arg. no. 5) (int to unsigned int) (94 warnings left)