Skip to content

Commit

Permalink
Fix -Wnull-arithmetic
Browse files Browse the repository at this point in the history
```
warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
```
  • Loading branch information
fjeremic committed May 6, 2021
1 parent 387ae3f commit 39ba2e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/compile/OMRCompilation.hpp
Expand Up @@ -162,7 +162,7 @@ enum ProfilingMode
void addDebug(const char * string);
#else
#define diagnostic(msg, ...) ((void)0)
#define debug(option) 0
#define debug(option) NULL
#define addDebug(string) ((void)0)
#endif

Expand Down
2 changes: 1 addition & 1 deletion compiler/optimizer/Structure.cpp
Expand Up @@ -2636,7 +2636,7 @@ bool TR_BlockStructure::changeContinueLoopsToNestedLoops(TR_RegionStructure *roo

bool TR_RegionStructure::changeContinueLoopsToNestedLoops(TR_RegionStructure *root)
{
static bool traceMyself=(debug("TR_traceChangeContinues") != 0);
static bool traceMyself=(debug("TR_traceChangeContinues") != NULL);

bool changed = false;
TR_RegionStructure::Cursor si(*this);
Expand Down

0 comments on commit 39ba2e1

Please sign in to comment.