ChangeLog:
Better error/warning locations
Locations for error and warning messages have been improved.
show error improvement
The show command now correctly prints all possible commands to define a type when requested to show a type that doesn't exist.
register warnings
A deprecated warning is now printed for a register array, enum, class, struct, union, pointer, pointer to member, reference, and rvalue reference between C++11 and C++14. (Previously, a warning was printed only for built-in types and typedefs.)
K&R function parameter printed as int
For functions having K&R C typeless parameters, int is now printed in C89 and later since such parameters are implicitly int.
show using before C++11
A show using before C++11 now prints an error.
Help output
Tweaked help output.
This release contains a variety of fixes from the previous version.
A dump/restore is not required for those running the same major version.
However, note that installations using physical replication should
update standby servers before the primary server, as explained in the
release notes.
Also, several bugs have been found that may have resulted in corrupted
indexes, as explained in the next several changelog entries. If any of
those cases apply to you, it's recommended to reindex possibly-affected
indexes after updating.
This release also mitigates two possible man-in-the-middle attacks.
Security: 2ccd71bd-426b-11ec-87db-6cc21735f730
Release notes: https://www.postgresql.org/docs/release/14.1/
In file included from layers/generated/chassis.cpp:48:
In file included from layers/best_practices_validation.h:26:
In file included from layers/image_state.h:31:
In file included from layers/image_layout_map.h:30:
layers/subresource_adapter.h:67:5: error: definition of implicit copy assignment operator for 'Subresource' is deprecated because it has a user-declared copy constructor [-Werror,-Wdeprecated-copy]
Subresource(const Subresource& from) = default;
^
layers/subresource_adapter.h:305:42: note: in implicit copy assignment operator for 'subresource_adapter::Subresource' first required here
*static_cast<Subresource*>(this) = encoder_->Decode(index);
^
Reported by: antoine (via bug 258209 exp-run)
In file included from ../bar/bar.cc:12:
../common/nwg_classes.h:200:33: error: no viable constructor or deduction guide for deduction of template arguments of 'array'
static constexpr std::array MAGIC { 'i', '3', '-', 'i', 'p', 'c' };
^
/usr/include/c++/v1/__tuple:219:64: note: candidate function template not viable: requires 1 argument, but 6 were provided
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
^
/usr/include/c++/v1/__tuple:219:64: note: candidate function template not viable: requires 0 arguments, but 6 were provided
In file included from ../bar/bar.cc:12:
../common/nwg_classes.h:203:52: error: invalid operands to binary expression ('const auto' and 'unsigned long')
static constexpr auto HEADER_SIZE = MAGIC_SIZE + 2 * sizeof(std::uint32_t);
~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
../common/nwg_classes.h:325:25: error: implicit instantiation of undefined template 'std::array<bool, 4>'
std::array<bool, 4> edges{ 0, 0, 0, 0 };
^
/usr/include/c++/v1/__tuple:219:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
^
In file included from ../bar/bar.cc:12:
../common/nwg_classes.h:326:25: error: implicit instantiation of undefined template 'std::array<int, 4>'
std::array<int, 4> margins{ 0, 0, 0, 0 };
^
/usr/include/c++/v1/__tuple:219:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
^
In file included from ../bar/bar.cc:12:
../common/nwg_classes.h:342:16: error: no viable constructor or deduction guide for deduction of template arguments of 'array'
std::array edges_ {
^
/usr/include/c++/v1/__tuple:219:64: note: candidate function template not viable: requires 1 argument, but 4 were provided
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
^
/usr/include/c++/v1/__tuple:219:64: note: candidate function template not viable: requires 0 arguments, but 4 were provided
../bar/bar.cc:106:9: error: cannot initialize object parameter of type 'CommonWindow' with an expression of type 'BarWindow'
window.set_background_color(background_color);
^~~~~~
../bar/bar.cc:133:9: error: cannot initialize object parameter of type 'Gtk::Container' with an expression of type 'BarWindow'
window.show_all_children();
^~~~~~
../bar/bar.cc:134:16: error: no matching member function for call to 'show'
window.show(hint::Fullscreen);
~~~~~~~^~~~
../common/nwg_classes.h:364:22: note: candidate function template not viable: no known conversion from 'BarWindow' to 'PlatformWindow' for object argument
void PlatformWindow::show(Hint h) {
^
../bar/bar.cc:141:21: error: no matching member function for call to 'run'
return app->run(window);
~~~~~^~~
/usr/local/include/gtkmm-3.0/gtkmm/application.h:480:7: note: candidate function not viable: no known conversion from 'BarWindow' to 'Gtk::Window &' for 1st argument
int run(Window& window);
^
/usr/local/include/gtkmm-3.0/gtkmm/application.h:496:7: note: candidate function not viable: requires 0 arguments, but 1 was provided
int run();
^
/usr/local/include/gtkmm-3.0/gtkmm/application.h:438:7: note: candidate function not viable: requires 2 arguments, but 1 was provided
int run(int argc, char** argv);
^
/usr/local/include/gtkmm-3.0/gtkmm/application.h:459:7: note: candidate function not viable: requires 3 arguments, but 1 was provided
int run(Window& window, int argc, char** argv);
^
Reported by: antoine (via bug 258209 exp-run)
In file included from /wrkdirs/usr/ports/graphics/libavif/work/libavif-0.9.2/contrib/gdk-pixbuf/loader.c:9:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h:35:
In file included from /usr/local/include/glib-2.0/glib.h:30:
In file included from /usr/local/include/glib-2.0/glib/galloca.h:32:
/usr/local/include/glib-2.0/glib/gtypes.h:458:24: error: identifier '_GLIB_CHECKED_ADD_U32' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
static inline gboolean _GLIB_CHECKED_ADD_U32 (guint32 *dest, guint32 a, guint32 b) {
^
/usr/local/include/glib-2.0/glib/gtypes.h:460:24: error: identifier '_GLIB_CHECKED_MUL_U32' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
static inline gboolean _GLIB_CHECKED_MUL_U32 (guint32 *dest, guint32 a, guint32 b) {
^
/usr/local/include/glib-2.0/glib/gtypes.h:462:24: error: identifier '_GLIB_CHECKED_ADD_U64' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
static inline gboolean _GLIB_CHECKED_ADD_U64 (guint64 *dest, guint64 a, guint64 b) {
^
/usr/local/include/glib-2.0/glib/gtypes.h:463:3: warning: '_Static_assert' is a C11 extension [-Wc11-extensions]
G_STATIC_ASSERT(sizeof (unsigned long long) == sizeof (guint64));
^
/usr/local/include/glib-2.0/glib/gmacros.h:819:31: note: expanded from macro 'G_STATIC_ASSERT'
#define G_STATIC_ASSERT(expr) _Static_assert (expr, "Expression evaluates to false")
^
In file included from /wrkdirs/usr/ports/graphics/libavif/work/libavif-0.9.2/contrib/gdk-pixbuf/loader.c:9:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h:35:
In file included from /usr/local/include/glib-2.0/glib.h:30:
In file included from /usr/local/include/glib-2.0/glib/galloca.h:32:
/usr/local/include/glib-2.0/glib/gtypes.h:465:24: error: identifier '_GLIB_CHECKED_MUL_U64' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
static inline gboolean _GLIB_CHECKED_MUL_U64 (guint64 *dest, guint64 a, guint64 b) {
^
/usr/local/include/glib-2.0/glib/gtypes.h:495:16: error: identifier '_GDoubleIEEE754' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef union _GDoubleIEEE754 GDoubleIEEE754;
^
/usr/local/include/glib-2.0/glib/gtypes.h:496:16: error: identifier '_GFloatIEEE754' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef union _GFloatIEEE754 GFloatIEEE754;
^
/usr/local/include/glib-2.0/glib/gtypes.h:545:16: error: identifier '_GTimeVal' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime);
^
In file included from /wrkdirs/usr/ports/graphics/libavif/work/libavif-0.9.2/contrib/gdk-pixbuf/loader.c:9:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h:35:
In file included from /usr/local/include/glib-2.0/glib.h:31:
/usr/local/include/glib-2.0/glib/garray.h:36:16: error: identifier '_GBytes' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef struct _GBytes GBytes;
^
/usr/local/include/glib-2.0/glib/garray.h:37:16: error: identifier '_GArray' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef struct _GArray GArray;
^
/usr/local/include/glib-2.0/glib/garray.h:38:16: error: identifier '_GByteArray' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef struct _GByteArray GByteArray;
^
/usr/local/include/glib-2.0/glib/garray.h:39:16: error: identifier '_GPtrArray' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef struct _GPtrArray GPtrArray;
^
In file included from /wrkdirs/usr/ports/graphics/libavif/work/libavif-0.9.2/contrib/gdk-pixbuf/loader.c:9:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h:35:
In file included from /usr/local/include/glib-2.0/glib.h:32:
In file included from /usr/local/include/glib-2.0/glib/gasyncqueue.h:32:
In file included from /usr/local/include/glib-2.0/glib/gthread.h:33:
/usr/local/include/glib-2.0/glib/gerror.h:41:16: error: identifier '_GError' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef struct _GError GError;
^
In file included from /wrkdirs/usr/ports/graphics/libavif/work/libavif-0.9.2/contrib/gdk-pixbuf/loader.c:9:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h:35:
In file included from /usr/local/include/glib-2.0/glib.h:32:
In file included from /usr/local/include/glib-2.0/glib/gasyncqueue.h:32:
In file included from /usr/local/include/glib-2.0/glib/gthread.h:34:
/usr/local/include/glib-2.0/glib/gutils.h:274:16: error: identifier '_GDebugKey' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef struct _GDebugKey GDebugKey;
^
In file included from /wrkdirs/usr/ports/graphics/libavif/work/libavif-0.9.2/contrib/gdk-pixbuf/loader.c:9:
In file included from /usr/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h:35:
In file included from /usr/local/include/glib-2.0/glib.h:32:
In file included from /usr/local/include/glib-2.0/glib/gasyncqueue.h:32:
/usr/local/include/glib-2.0/glib/gthread.h:49:16: error: identifier '_GThread' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef struct _GThread GThread;
^
/usr/local/include/glib-2.0/glib/gthread.h:51:16: error: identifier '_GMutex' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef union _GMutex GMutex;
^
/usr/local/include/glib-2.0/glib/gthread.h:52:16: error: identifier '_GRecMutex' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef struct _GRecMutex GRecMutex;
^
/usr/local/include/glib-2.0/glib/gthread.h:53:16: error: identifier '_GRWLock' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef struct _GRWLock GRWLock;
^
/usr/local/include/glib-2.0/glib/gthread.h:54:16: error: identifier '_GCond' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef struct _GCond GCond;
^
/usr/local/include/glib-2.0/glib/gthread.h:55:16: error: identifier '_GPrivate' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]
typedef struct _GPrivate GPrivate;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
Reported by: antoine (via bug 258209 exp-run)