Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile with warning as error #74

Open
wants to merge 28 commits into
base: main
Choose a base branch
from

Commits on Jul 25, 2023

  1. Configuration menu
    Copy the full SHA
    0a0690a View commit details
    Browse the repository at this point in the history
  2. /tmp/libQGLViewer/build/QGLViewer/quaternion.h:170:44: error: declara…

    …tion of ‘q’ shadows a member of ‘qglviewer::Quaternion’ [-Werror=shadow]
    
      170 |   Quaternion &operator*=(const Quaternion &q) {
          |                          ~~~~~~~~~~~~~~~~~~^
    /tmp/libQGLViewer/build/QGLViewer_autogen/QGLViewer/quaternion.h:309:9: note: shadowed declaration is here
      309 |   qreal q[4];
          |         ^
    fghoussen committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    732e0d7 View commit details
    Browse the repository at this point in the history
  3. /tmp/libQGLViewer/QGLViewer/VRender/BSPSortMethod.cpp:542:91: error: …

    …declaration of ‘d’ shadows a member of ‘BSPNode’ [-Werror=shadow]
    
      542 | void BSPNode::initEquation(const Polygone *P,double & a, double & b, double & c, double & d)
          |                                                                                  ~~~~~~~~~^
    /tmp/libQGLViewer/QGLViewer/VRender/BSPSortMethod.cpp:93:30: note: shadowed declaration is here
       93 |                 double a,b,c,d;
          |                              ^
    fghoussen committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    2ec1861 View commit details
    Browse the repository at this point in the history
  4. /tmp/libQGLViewer/QGLViewer/VRender/BSPSortMethod.cpp:542:79: error: …

    …declaration of ‘c’ shadows a member of ‘BSPNode’ [-Werror=shadow]
    
      542 | void BSPNode::initEquation(const Polygone *P,double & a, double & b, double & c, double & dd)
          |                                                                      ~~~~~~~~~^
    /tmp/libQGLViewer/QGLViewer/VRender/BSPSortMethod.cpp:93:28: note: shadowed declaration is here
       93 |                 double a,b,c,d;
          |                            ^
    fghoussen committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    c895d71 View commit details
    Browse the repository at this point in the history
  5. /tmp/libQGLViewer/QGLViewer/VRender/BSPSortMethod.cpp:542:67: error: …

    …declaration of ‘b’ shadows a member of ‘BSPNode’ [-Werror=shadow]
    
      542 | void BSPNode::initEquation(const Polygone *P,double & a, double & b, double & c, double & dd)
          |                                                          ~~~~~~~~~^
    /tmp/libQGLViewer/QGLViewer/VRender/BSPSortMethod.cpp:93:26: note: shadowed declaration is here
       93 |                 double a,b,c,d;
          |                          ^
    fghoussen committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    a111f78 View commit details
    Browse the repository at this point in the history
  6. /tmp/libQGLViewer/QGLViewer/VRender/BSPSortMethod.cpp:542:55: error: …

    …declaration of ‘a’ shadows a member of ‘BSPNode’ [-Werror=shadow]
    
      542 | void BSPNode::initEquation(const Polygone *P,double & a, double & bb, double & cc, double & dd)
          |                                              ~~~~~~~~~^
    /tmp/libQGLViewer/QGLViewer/VRender/BSPSortMethod.cpp:93:24: note: shadowed declaration is here
       93 |                 double a,b,c,d;
          |                        ^
    fghoussen committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    9b40391 View commit details
    Browse the repository at this point in the history
  7. /tmp/libQGLViewer/QGLViewer/VRender/NVector3.cpp:41:8: error: ‘double…

    … vrender::operator*(const NVector3&, const Vector3&)’ has not been declared within ‘vrender’ [-Werror]
    
       41 | double vrender::operator*(const NVector3 &u,const Vector3  &v)
          |        ^~~~~~~
    In file included from /tmp/libQGLViewer/QGLViewer/VRender/NVector3.cpp:1:
    /tmp/libQGLViewer/QGLViewer/VRender/NVector3.h:45:19: note: only here as a ‘friend’
       45 |     friend double operator*(const NVector3 &u,const Vector3  &v);
          |                   ^~~~~~~~
    fghoussen committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    88cd729 View commit details
    Browse the repository at this point in the history
  8. /tmp/libQGLViewer/QGLViewer/VRender/NVector3.cpp:46:8: error: ‘double…

    … vrender::operator*(const Vector3&, const NVector3&)’ has not been declared within ‘vrender’ [-Werror]
    
       46 | double vrender::operator*(const Vector3  &u,const NVector3 &v)
          |        ^~~~~~~
    In file included from /tmp/libQGLViewer/QGLViewer/VRender/NVector3.cpp:1:
    /tmp/libQGLViewer/QGLViewer/VRender/NVector3.h:46:19: note: only here as a ‘friend’
       46 |     friend double operator*(const Vector3  &u,const NVector3 &v);
          |                   ^~~~~~~~
    fghoussen committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    490f2ef View commit details
    Browse the repository at this point in the history
  9. /tmp/libQGLViewer/QGLViewer/VRender/Primitive.cpp:121:15: error: ‘std…

    …::ostream& vrender::operator<<(std::ostream&, const Feedback3DColor&)’ has not been declared within ‘vrender’ [-Werror]
    
      121 | std::ostream& vrender::operator<<(std::ostream& o,const Feedback3DColor& f)
          |               ^~~~~~~
    In file included from /tmp/libQGLViewer/QGLViewer/VRender/Primitive.cpp:3:
    /tmp/libQGLViewer/QGLViewer/VRender/Primitive.h:61:38: note: only here as a ‘friend’
       61 |                 friend std::ostream& operator<<(std::ostream&,const Feedback3DColor&) ;
          |                                      ^~~~~~~~
    fghoussen committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    2f46c7d View commit details
    Browse the repository at this point in the history
  10. /tmp/libQGLViewer/QGLViewer/VRender/Vector2.cpp:50:9: error: ‘vrender…

    …::Vector2 vrender::operator-(const Vector2&)’ has not been declared within ‘vrender’ [-Werror]
    
       50 | Vector2 vrender::operator- (const Vector2& u)
          |         ^~~~~~~
    In file included from /tmp/libQGLViewer/QGLViewer/VRender/Vector2.cpp:1:
    /tmp/libQGLViewer/QGLViewer/VRender/Vector2.h:73:40: note: only here as a ‘friend’
       73 |                         friend Vector2 operator- (const Vector2&);
          |                                        ^~~~~~~~
    fghoussen committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    e0f6585 View commit details
    Browse the repository at this point in the history
  11. /tmp/libQGLViewer/QGLViewer/VRender/Vector3.cpp:81:9: error: ‘vrender…

    …::Vector3 vrender::operator*(double, const Vector3&)’ has not been declared within ‘vrender’ [-Werror]
    
       81 | Vector3 vrender::operator* (double r,const Vector3& u)
          |         ^~~~~~~
    In file included from /tmp/libQGLViewer/QGLViewer/VRender/Vector3.cpp:2:
    /tmp/libQGLViewer/QGLViewer/VRender/Vector3.h:114:40: note: only here as a ‘friend’
      114 |                         friend Vector3 operator* (double,const Vector3&);
          |                                        ^~~~~~~~
    fghoussen committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    1a0bbe9 View commit details
    Browse the repository at this point in the history
  12. /tmp/libQGLViewer/QGLViewer/VRender/Vector3.cpp:111:15: error: ‘std::…

    …ostream& vrender::operator<<(std::ostream&, const Vector3&)’ has not been declared within ‘vrender’ [-Werror]
    
      111 | std::ostream& vrender::operator<< (std::ostream& out,const Vector3& u)
          |               ^~~~~~~
    /tmp/libQGLViewer/QGLViewer/VRender/Vector3.h:127:46: note: only here as a ‘friend’
      127 |                         friend std::ostream& operator<< (std::ostream&,const Vector3&);
          |                                              ^~~~~~~~
    fghoussen committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    8f22b9f View commit details
    Browse the repository at this point in the history
  13. /tmp/libQGLViewer/QGLViewer/frame.cpp:1038:13: error: declaration of …

    …‘proj’ shadows a previous local [-Werror=shadow]
    
     1038 |       qreal proj = fabs(directions[0][i] * dir);
          |             ^~~~
    /tmp/libQGLViewer/QGLViewer/frame.cpp:1009:9: note: shadowed declaration is here
     1009 |   qreal proj;
          |         ^~~~
    fghoussen committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    6923e46 View commit details
    Browse the repository at this point in the history
  14. /tmp/libQGLViewer/QGLViewer/frame.cpp:1046:17: error: declaration of …

    …‘axis’ shadows a previous local [-Werror=shadow]
    
     1046 |       const Vec axis = cross(directions[0][index[0]], dir);
          |                 ^~~~
    /tmp/libQGLViewer/QGLViewer/frame.cpp:1025:15: note: shadowed declaration is here
     1025 |     const Vec axis = cross(directions[0][index[0]], directions[1][index[1]]);
          |               ^~~~
    fghoussen committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    d45b939 View commit details
    Browse the repository at this point in the history
  15. /tmp/libQGLViewer/QGLViewer/frame.cpp:1047:13: error: declaration of …

    …‘angle’ shadows a previous local [-Werror=shadow]
    
     1047 |       qreal angle = asin(axis.norm());
          |             ^~~~~
    /tmp/libQGLViewer/QGLViewer/frame.cpp:1026:11: note: shadowed declaration is here
     1026 |     qreal angle = asin(axis.norm());
          |           ^~~~~
    fghoussen committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    239ad1a View commit details
    Browse the repository at this point in the history
  16. /tmp/libQGLViewer/QGLViewer/keyFrameInterpolator.cpp:340:13: error: d…

    …eclaration of ‘v1’ shadows a member of ‘qglviewer::KeyFrameInterpolator’ [-Werror=shadow]
    
      340 |         Vec v1 = 3.0 * diff - 2.0 * kf_[1]->tgP() - kf_[2]->tgP();
          |             ^~
    In file included from /tmp/libQGLViewer/QGLViewer/camera.h:5,
                     from /tmp/libQGLViewer/QGLViewer/qglviewer.h:4,
                     from /tmp/libQGLViewer/QGLViewer/keyFrameInterpolator.cpp:2:
    /tmp/libQGLViewer/QGLViewer/keyFrameInterpolator.h:354:7: note: shadowed declaration is here
      354 |   Vec v1, v2;
          |       ^~
    fghoussen committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    b79c8ca View commit details
    Browse the repository at this point in the history
  17. /tmp/libQGLViewer/QGLViewer/keyFrameInterpolator.cpp:341:13: error: d…

    …eclaration of ‘v2’ shadows a member of ‘qglviewer::KeyFrameInterpolator’ [-Werror=shadow]
    
      341 |         Vec v2 = -2.0 * diff + kf_[1]->tgP() + kf_[2]->tgP();
          |             ^~
    In file included from /tmp/libQGLViewer/QGLViewer/camera.h:5,
                     from /tmp/libQGLViewer/QGLViewer/qglviewer.h:4,
                     from /tmp/libQGLViewer/QGLViewer/keyFrameInterpolator.cpp:2:
    /tmp/libQGLViewer/QGLViewer/keyFrameInterpolator.h:354:11: note: shadowed declaration is here
      354 |   Vec v1, v2;
          |           ^~
    fghoussen committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    78fa8e5 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    6060d1f View commit details
    Browse the repository at this point in the history
  19. /tmp/libQGLViewer/QGLViewer/qglviewer.cpp:1897:13: error: declaration…

    … of ‘text’ shadows a previous local [-Werror=shadow]
    
     1897 |     QString text = mouseActionString(itmb.value().action);
          |             ^~~~
    /tmp/libQGLViewer/QGLViewer/qglviewer.cpp:1846:11: note: shadowed declaration is here
     1846 |   QString text(
          |           ^~~~
    fghoussen committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    8bdcf15 View commit details
    Browse the repository at this point in the history
  20. /tmp/libQGLViewer/QGLViewer/qglviewer.cpp:1921:13: error: declaration…

    … of ‘text’ shadows a previous local [-Werror=shadow]
    
     1921 |     QString text = mouseActionString(itw.value().action);
          |             ^~~~
    /tmp/libQGLViewer/QGLViewer/qglviewer.cpp:1846:11: note: shadowed declaration is here
     1846 |   QString text(
          |           ^~~~
    fghoussen committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    3763ac0 View commit details
    Browse the repository at this point in the history
  21. /tmp/libQGLViewer/QGLViewer/quaternion.cpp:227:14: error: declaration…

    … of ‘q’ shadows a member of ‘qglviewer::Quaternion’ [-Werror=shadow]
    
      227 |   Quaternion q(element);
          |              ^
    In file included from /tmp/libQGLViewer/QGLViewer/quaternion.cpp:1:
    /tmp/libQGLViewer/QGLViewer/quaternion.h:309:9: note: shadowed declaration is here
      309 |   qreal q[4];
          |         ^
    fghoussen committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    0f0a241 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2023

  1. Configuration menu
    Copy the full SHA
    a699062 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b601b9e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    328b5c2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4dc9899 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    58bce2b View commit details
    Browse the repository at this point in the history
  6. NVector3.cpp:21:1: error: base class ‘class vrender::Vector3’ should …

    …be explicitly initialized in the copy constructor [-Werror=extra]
    
       21 | NVector3::NVector3(const NVector3& u)
    fghoussen committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    e6746e0 View commit details
    Browse the repository at this point in the history
  7. cameraViewer.cpp:16:17: error: declaration of ‘c’ shadows a member of…

    … ‘CameraViewer’ [-Werror=shadow]
    
       16 |     const float c = cos(angle);
          |                 ^
    fghoussen committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    8c7e133 View commit details
    Browse the repository at this point in the history