Skip to content

Commit

Permalink
Merge pull request #855 from veselypeta/petr/fix-empty-body-warning
Browse files Browse the repository at this point in the history
[UMF] Fix -Wempty-body warning
  • Loading branch information
pbalcer authored Sep 13, 2023
2 parents 8b3da24 + 739d11c commit a346a30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions cmake/helpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ function(add_ur_target_compile_options name)
-fPIC
-Wall
-Wpedantic
-Wempty-body
$<$<CXX_COMPILER_ID:GNU>:-fdiagnostics-color=always>
$<$<CXX_COMPILER_ID:Clang,AppleClang>:-fcolor-diagnostics>
)
Expand Down
5 changes: 2 additions & 3 deletions source/common/unified_malloc_framework/src/utils/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,8 @@ static inline void *Zalloc(size_t s) {
}

#define NOFUNCTION \
do \
; \
while (0)
do { \
} while (0)
#define VALGRIND_ANNOTATE_NEW_MEMORY(p, s) NOFUNCTION
#define VALGRIND_HG_DRD_DISABLE_CHECKING(p, s) NOFUNCTION

Expand Down

0 comments on commit a346a30

Please sign in to comment.