Skip to content

Commit

Permalink
(Temporary) Resolve [-Wzero-as-null-pointer-constant] in Externals
Browse files Browse the repository at this point in the history
This shouldn't be necesssary after Externals become SYSTEM includes.
  • Loading branch information
get committed Apr 15, 2023
1 parent 1e3d09e commit 5829a44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Externals/cpp-optparse/OptionParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class Values {
class Option {
public:
Option(const OptionParser& p) :
_parser(p), _action("store"), _type("string"), _nargs(1), _callback(0) {}
_parser(p), _action("store"), _type("string"), _nargs(1), _callback(nullptr) {}
virtual ~Option() {}

Option& action(const std::string& a);
Expand Down
2 changes: 1 addition & 1 deletion Externals/picojson/picojson.h
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ template <typename Iter> inline std::string parse(value &out, Iter &pos, const I

template <typename Context, typename Iter> inline Iter _parse(Context &ctx, const Iter &first, const Iter &last, std::string *err) {
input<Iter> in(first, last);
if (!_parse(ctx, in) && err != NULL) {
if (!_parse(ctx, in) && err != nullptr) {
char buf[64];
SNPRINTF(buf, sizeof(buf), "syntax error at line %d near: ", in.line());
*err = buf;
Expand Down

0 comments on commit 5829a44

Please sign in to comment.