boostorg / qvm

Boost Quaternions, Vectors, Matrices library
Boost Software License 1.0
81 stars 45 forks source link

warning: extra ';' outside of a function is incompatible with C++98 #41

Closed jhasse closed 1 year ago

jhasse commented 1 year ago

When compiling with AppleClang 14 I'm getting the following warnings:

boost/qvm/vec_traits_gnuc.hpp:88:33: warning: extra ';' outside of a function is incompatible with C++98 [-Wc++98-compat-extra-semi]
BOOST_QVM_GNUC_VEC_TYPE(float,2);
                                ^
boost/qvm/vec_traits_gnuc.hpp:89:33: warning: extra ';' outside of a function is incompatible with C++98 [-Wc++98-compat-extra-semi]
BOOST_QVM_GNUC_VEC_TYPE(float,4);
                                ^
boost/qvm/vec_traits_gnuc.hpp:90:34: warning: extra ';' outside of a function is incompatible with C++98 [-Wc++98-compat-extra-semi]
BOOST_QVM_GNUC_VEC_TYPE(double,2);
                                 ^
boost/qvm/vec_traits_gnuc.hpp:91:34: warning: extra ';' outside of a function is incompatible with C++98 [-Wc++98-compat-extra-semi]
BOOST_QVM_GNUC_VEC_TYPE(double,4);
                                 ^

I could disable the warning, but I guess the semicolon is unnecessary?

zajo commented 1 year ago

Thanks, fixed.