Skip to content

Correct Zero/Null as pointer constant#1938

Merged
danmar merged 1 commit into
cppcheck-opensource:masterfrom
scottfurry:ZeroConstant
Jun 30, 2019
Merged

Correct Zero/Null as pointer constant#1938
danmar merged 1 commit into
cppcheck-opensource:masterfrom
scottfurry:ZeroConstant

Conversation

@scottfurry
Copy link
Copy Markdown
Contributor

Building with enhanced clang warnings indicated a large number of
instances with the warning:

warning: zero as null pointer constant

Recommended practice in C++11 is to use nullptr as value for
a NULL or empty pointer value. All instances where this warning
was encountered were corrected in this commit.

Where warning was encountered in dependency code (i.e. external library)
no chnages were made. Patching will be offered upstream.

Building with enhanced clang warnings indicated a large number of
instances with the warning:

`warning: zero as null pointer constant`

Recommended practice in C++11 is to use `nullptr` as value for
a NULL or empty pointer value. All instances where this warning
was encountered were corrected in this commit.

Where warning was encountered in dependency code (i.e. external library)
no chnages were made. Patching will be offered upstream.
@danmar danmar merged commit a195477 into cppcheck-opensource:master Jun 30, 2019
@scottfurry scottfurry deleted the ZeroConstant branch June 30, 2019 21:01
danmar pushed a commit that referenced this pull request Jul 2, 2019
Further to pull request #1938. Changes were missed in previous commit.

Resolve warnings `warning: zero as null pointer constant` in code by
using C++ 11 recommended `nullptr`.
jubnzv pushed a commit to jubnzv/cppcheck that referenced this pull request Nov 13, 2019
Building with enhanced clang warnings indicated a large number of
instances with the warning:

`warning: zero as null pointer constant`

Recommended practice in C++11 is to use `nullptr` as value for
a NULL or empty pointer value. All instances where this warning
was encountered were corrected in this commit.

Where warning was encountered in dependency code (i.e. external library)
no chnages were made. Patching will be offered upstream.
jubnzv pushed a commit to jubnzv/cppcheck that referenced this pull request Nov 13, 2019
)

Further to pull request cppcheck-opensource#1938. Changes were missed in previous commit.

Resolve warnings `warning: zero as null pointer constant` in code by
using C++ 11 recommended `nullptr`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants