Skip to content

Clear warning about redefinition of macro#48422

Merged
vtjnash merged 1 commit intoJuliaLang:masterfrom
giordano:mg/warn
Feb 1, 2023
Merged

Clear warning about redefinition of macro#48422
vtjnash merged 1 commit intoJuliaLang:masterfrom
giordano:mg/warn

Conversation

@giordano
Copy link
Copy Markdown
Member

FORCE_INLINE is also defined in src/support/dtypes.h, and both dtypes.h and MurmurHash3.c are included by src/support/hashing.c, causing a clash:

In file included from /home/mose/repo/julia/src/support/hashing.c:51:
/home/mose/repo/julia/src/support/MurmurHash3.c:15: warning: "FORCE_INLINE" redefined
   15 | #define FORCE_INLINE inline __attribute__((always_inline))
      |
In file included from /home/mose/repo/julia/src/support/hashing.c:7:
/home/mose/repo/julia/src/support/dtypes.h:120: note: this is the location of the previous definition
  120 | #define FORCE_INLINE static inline __attribute__((always_inline))
      |

Ref: https://github.com/JuliaLang/julia/pull/47292/files#r1088465126

`FORCE_INLINE` is also defined in `src/support/dtypes.h`, and both `dtypes.h`
and `MurmurHash3.c` are included by `src/support/hashing.c`, causing a clash:

```
In file included from /home/mose/repo/julia/src/support/hashing.c:51:
/home/mose/repo/julia/src/support/MurmurHash3.c:15: warning: "FORCE_INLINE" redefined
   15 | #define FORCE_INLINE inline __attribute__((always_inline))
      |
In file included from /home/mose/repo/julia/src/support/hashing.c:7:
/home/mose/repo/julia/src/support/dtypes.h:120: note: this is the location of the previous definition
  120 | #define FORCE_INLINE static inline __attribute__((always_inline))
      |
```
@vtjnash vtjnash merged commit d918576 into JuliaLang:master Feb 1, 2023
@giordano giordano deleted the mg/warn branch February 1, 2023 19:56
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