Skip to content

Commit

Permalink
Fixed ‘use of GNU statement expression extension from macro expansion…
Browse files Browse the repository at this point in the history
…’ warning

Current clang doesn not seem to like this anymore...
  • Loading branch information
DidierMalenfant committed Feb 2, 2024
1 parent b3998bc commit 20cae14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adf_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ struct DateTime {

/* defines max and min */
#ifndef max
#if defined(__clang__) || defined(__GNUC__)
#if !defined(__clang__) && defined(__GNUC__)
#define max(a,b) \
({ \
__typeof__ (a) _a = (a); \
Expand All @@ -51,7 +51,7 @@ struct DateTime {
#endif

#ifndef min
#if defined(__clang__) || defined(__GNUC__)
#if !defined(__clang__) && defined(__GNUC__)
#define min(a,b) \
({ \
__typeof__ (a) _a = (a); \
Expand Down

0 comments on commit 20cae14

Please sign in to comment.