git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 83204e1) | patch
Remove unportable use of anonymous unions from reorderbuffer.h.
Fri, 7 Mar 2014 22:02:48 +0000 (17:02 -0500)
Fri, 7 Mar 2014 22:03:26 +0000 (17:03 -0500)
commit ea177a3ba7a7901f6467eadb0a407e03d46462fd
Remove unportable use of anonymous unions from reorderbuffer.h.

In b89e151054a I had assumed it was ok to use anonymous unions as
struct members, but while a longstanding extension in many compilers,
it's only been standardized in C11.

To fix, remove one of the anonymous unions which tried to hide some
implementation specific enum values and give the other a name. The
latter unfortunately requires changes in output plugins, but since the
feature has only been added a few days ago...

Andres Freund
contrib/test_decoding/test_decoding.c diff | blob | blame | history
src/backend/replication/logical/decode.c diff | blob | blame | history
src/backend/replication/logical/reorderbuffer.c diff | blob | blame | history
src/include/replication/reorderbuffer.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /