# Changeset View

Changeset View

# Standalone View

Standalone View

# docs/ReleaseNotes.rst

Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Line(s) | |||||

73 | 73 | | |||

74 | - ``-Wtautological-compare`` now warns when comparing an unsigned integer and 0 | 74 | - ``-Wtautological-compare`` now warns when comparing an unsigned integer and 0 | ||

75 | regardless of whether the constant is signed or unsigned." | 75 | regardless of whether the constant is signed or unsigned." | ||

76 | 76 | | |||

77 | - ``-Wtautological-compare`` now warns about comparing a signed integer and 0 | 77 | - ``-Wtautological-compare`` now warns about comparing a signed integer and 0 | ||

78 | when the signed integer is coerced to an unsigned type for the comparison. | 78 | when the signed integer is coerced to an unsigned type for the comparison. | ||

79 | ``-Wsign-compare`` was adjusted not to warn in this case. | 79 | ``-Wsign-compare`` was adjusted not to warn in this case. | ||

80 | 80 | | |||

81 | - ``-Wtautological-constant-compare`` is a new warning that warns on | ||||

82 | tautological comparisons between integer variable of the type ``T`` and the | ||||

83 | largest/smallest possible integer constant of that same type. | ||||

84 | | ||||

81 | - ``-Wnull-pointer-arithmetic`` now warns about performing pointer arithmetic | 85 | - ``-Wnull-pointer-arithmetic`` now warns about performing pointer arithmetic | ||

82 | on a null pointer. Such pointer arithmetic has an undefined behavior if the | 86 | on a null pointer. Such pointer arithmetic has an undefined behavior if the | ||

83 | offset is nonzero. It also now warns about arithmetic on a null pointer | 87 | offset is nonzero. It also now warns about arithmetic on a null pointer | ||

84 | treated as a cast from integer to pointer (GNU extension). | 88 | treated as a cast from integer to pointer (GNU extension). | ||

85 | 89 | | |||

86 | Non-comprehensive list of changes in this release | 90 | Non-comprehensive list of changes in this release | ||

87 | ------------------------------------------------- | 91 | ------------------------------------------------- | ||

88 | 92 | | |||

▲ Show 20 Lines • Show All 191 Lines • Show Last 20 Lines |