MinGW warning log


#1

Here it is:


**** src/juce_core/io/network/
     juce_Socket.cpp:
----+-------------------------------------------------------------------------------
    : W: comparison between signed and unsigned integer expressions
 204:     fd_set readbits;
 205:     FD_ZERO (&readbits);
 206:     FD_SET (handle, &readbits);

**** src/juce_appframework/audio/audio_file_formats/oggvorbis/libvorbis-1.1.2/lib/
     scales.h:
----+-------------------------------------------------------------------------------
    : W: 'unitnorm' defined but not used
  26: #ifdef VORBIS_IEEE_FLOAT32
  28: static float unitnorm(float x){
----+-------------------------------------------------------------------------------
    : W: 'todB' defined but not used
  38: /* Segher was off (too high) by ~ .3 decibel.  Center the conversion correctly. */
  39: static float todB(const float *x){
----+-------------------------------------------------------------------------------
    : W: 'unitnorm' defined but not used
  26: #ifdef VORBIS_IEEE_FLOAT32
  28: static float unitnorm(float x){
----+-------------------------------------------------------------------------------
    : W: 'todB' defined but not used
  38: /* Segher was off (too high) by ~ .3 decibel.  Center the conversion correctly. */
  39: static float todB(const float *x){
----+-------------------------------------------------------------------------------
    : W: 'unitnorm' defined but not used
  26: #ifdef VORBIS_IEEE_FLOAT32
  28: static float unitnorm(float x){
----+-------------------------------------------------------------------------------
    : W: 'todB' defined but not used
  38: /* Segher was off (too high) by ~ .3 decibel.  Center the conversion correctly. */
  39: static float todB(const float *x){

**** src/juce_appframework/audio/audio_file_formats/oggvorbis/libvorbis-1.1.2/lib/
     lookup_data.h:
----+-------------------------------------------------------------------------------
    : W: 'FROMdB_LOOKUP' defined but not used
  99: #define FROMdB2_SHIFT 3
 100: #define FROMdB2_MASK 31
 101: static float FROMdB_LOOKUP[FROMdB_LOOKUP_SZ]={
----+-------------------------------------------------------------------------------
    : W: 'FROMdB2_LOOKUP' defined but not used
 111: };
 113: static float FROMdB2_LOOKUP[FROMdB2_LOOKUP_SZ]={

**** src/juce_appframework/audio/audio_file_formats/oggvorbis/libvorbis-1.1.2/lib/
     scales.h:
----+-------------------------------------------------------------------------------
    : W: 'unitnorm' defined but not used
  26: #ifdef VORBIS_IEEE_FLOAT32
  28: static float unitnorm(float x){
----+-------------------------------------------------------------------------------
    : W: 'todB' defined but not used
  38: /* Segher was off (too high) by ~ .3 decibel.  Center the conversion correctly. */
  39: static float todB(const float *x){
----+-------------------------------------------------------------------------------
    : W: 'unitnorm' defined but not used
  26: #ifdef VORBIS_IEEE_FLOAT32
  28: static float unitnorm(float x){
----+-------------------------------------------------------------------------------
    : W: 'todB' defined but not used
  38: /* Segher was off (too high) by ~ .3 decibel.  Center the conversion correctly. */
  39: static float todB(const float *x){

**** src/juce_appframework/audio/audio_file_formats/oggvorbis/libvorbis-1.1.2/lib/
     mapping0.c:
----+-------------------------------------------------------------------------------
    : W: 'mag_memo' might be used uninitialized in this function
 590:     int *zerobundle=alloca(sizeof(*zerobundle)*vi->channels);
 591:     int **sortindex=alloca(sizeof(*sortindex)*vi->channels);
 592:     float **mag_memo;

**** src/juce_appframework/audio/audio_file_formats/oggvorbis/libvorbis-1.1.2/lib/
     scales.h:
----+-------------------------------------------------------------------------------
    : W: 'unitnorm' defined but not used
  26: #ifdef VORBIS_IEEE_FLOAT32
  28: static float unitnorm(float x){

**** src/juce_appframework/audio/audio_file_formats/oggvorbis/libvorbis-1.1.2/lib/
     psy.c:
----+-------------------------------------------------------------------------------
    : W: 'A' might be used uninitialized in this function
 558:   int lo, hi;
 559:   float R, A, B, D;

**** src/juce_appframework/audio/audio_file_formats/oggvorbis/libvorbis-1.1.2/lib/
     scales.h:
----+-------------------------------------------------------------------------------
    : W: 'todB' defined but not used
  38: /* Segher was off (too high) by ~ .3 decibel.  Center the conversion correctly. */
  39: static float todB(const float *x){
----+-------------------------------------------------------------------------------
    : W: 'unitnorm' defined but not used
  26: #ifdef VORBIS_IEEE_FLOAT32
  28: static float unitnorm(float x){
----+-------------------------------------------------------------------------------
    : W: 'todB' defined but not used
  38: /* Segher was off (too high) by ~ .3 decibel.  Center the conversion correctly. */
  39: static float todB(const float *x){

**** src/juce_appframework/audio/audio_file_formats/oggvorbis/libvorbis-1.1.2/lib/
     vorbisfile.c:
----+-------------------------------------------------------------------------------
    : W: 'eosflag' might be used uninitialized in this function
 991:     int accblock=0;
 992:     int thisblock;
 993:     int eosflag;

**** demo/src/demos/
     WidgetsDemo.cpp:
----+-------------------------------------------------------------------------------
    : W: unused variable 'userPickedOk'
1172:                 {
1173:                     bool userPickedOk
1174:                         = AlertWindow::showOkCancelBox (AlertWindow::QuestionIcon,
----+-------------------------------------------------------------------------------
    : W: unused variable 'optionIndexChosen'
1197:                     {
1198:                         // this is the item they chose in the drop-down list..
1199:                         const int optionIndexChosen = w.getComboBoxComponent (T("option"))->getSelectedItemIndex();

**** jucer/src/ui/../model/components/
     jucer_ComponentTypeHandler.h:
----+-------------------------------------------------------------------------------
    : W: `class ComponentTypeHandler' has virtual functions but non-virtual destructor
  43: */
  44: class ComponentTypeHandler
  45: {

**** jucer/src/model/components/../../properties/
     jucer_PositionPropertyBase.h:
----+-------------------------------------------------------------------------------
    : W: `PositionPropertyBase::allowRelativeOptions' will be initialized after
 472:     Component* component;
 473:     ComponentPositionDimension dimension;
 474:     const bool includeAnchorOptions, allowRelativeOptions;
----+-------------------------------------------------------------------------------
    : W:   `ComponentLayout*PositionPropertyBase::layout'
 466:     };
 468:     ComponentLayout* layout;
----+-------------------------------------------------------------------------------
    : W:   when initialized here
  65:           allowRelativeOptions (allowRelativeOptions_),
  66:           layout (layout_)
  67:     {

**** jucer/src/model/documents/../components/
     jucer_ComponentTypeHandler.h:
----+-------------------------------------------------------------------------------
    : W: `class ComponentTypeHandler' has virtual functions but non-virtual destructor
  43: */
  44: class ComponentTypeHandler
  45: {

**** jucer/src/model/
     jucer_ComponentLayout.cpp:
----+-------------------------------------------------------------------------------
    : W: `AddCompAction::layout' will be initialized after
 119: private:
 120:     XmlElement* xml;
 121:     ComponentLayout& layout;
----+-------------------------------------------------------------------------------
    : W:   `int AddCompAction::indexAdded'
 115:     int getSizeInUnits()    { return 10; }
 117:     int indexAdded;
----+-------------------------------------------------------------------------------
    : W:   when initialized here
  87:          layout (layout_),
  88:          indexAdded (-1)
  89:     {

**** jucer/src/model/components/
     jucer_ComponentTypeHandler.h:
----+-------------------------------------------------------------------------------
    : W: `class ComponentTypeHandler' has virtual functions but non-virtual destructor
  43: */
  44: class ComponentTypeHandler
  45: {

**** jucer/src/model/paintelements/
     jucer_PaintElementText.h:
----+-------------------------------------------------------------------------------
    : W: `PaintElementText::SetTextAction::newText' will be initialized after
 184:     private:
 185:         String oldText, newText;
----+-------------------------------------------------------------------------------
    : W:   when initialized here
 165:               newText (newText_),
 166:               oldText (element->getText())
 167:         {
----+-------------------------------------------------------------------------------
    : W: `PaintElementText::SetFontAction::newFont' will be initialized after
 232:     private:
 233:         Font oldFont, newFont;
----+-------------------------------------------------------------------------------
    : W:   when initialized here
 213:               newFont (newFont_),
 214:               oldFont (element->getFont())
 215:         {
----+-------------------------------------------------------------------------------
    : W: `PaintElementText::SetTypefaceAction::newValue' will be initialized after
 278:     private:
 279:         String oldValue, newValue;
----+-------------------------------------------------------------------------------
    : W:   when initialized here
 259:               newValue (newValue_),
 260:               oldValue (element->getTypefaceName())
 261:         {
----+-------------------------------------------------------------------------------
    : W: `PaintElementText::SetJustifyAction::newValue' will be initialized after
 325:     private:
 326:         Justification oldValue, newValue;
----+-------------------------------------------------------------------------------
    : W:   when initialized here
 306:               newValue (newValue_),
 307:               oldValue (element->getJustification())
 308:         {

**** jucer/src/model/components/
     jucer_ButtonHandler.h:
----+-------------------------------------------------------------------------------
    : W: `class ButtonHandler' has virtual functions but non-virtual destructor
  43: */
  44: class ButtonHandler  : public ComponentTypeHandler
  45: {

**** jucer/src/model/components/
     jucer_TextButtonHandler.h:
----+-------------------------------------------------------------------------------
    : W: `class TextButtonHandler' has virtual functions but non-virtual destructor
  41: */
  42: class TextButtonHandler  : public ButtonHandler
  43: {

**** jucer/src/model/components/
     jucer_SliderHandler.h:
----+-------------------------------------------------------------------------------
    : W: `class SliderHandler' has virtual functions but non-virtual destructor
  37: */
  38: class SliderHandler  : public ComponentTypeHandler
  39: {

**** jucer/src/model/components/
     jucer_LabelHandler.h:
----+-------------------------------------------------------------------------------
    : W: `class LabelHandler' has virtual functions but non-virtual destructor
  42: */
  43: class LabelHandler  : public ComponentTypeHandler
  44: {

**** jucer/src/model/components/
     jucer_TextEditorHandler.h:
----+-------------------------------------------------------------------------------
    : W: `class TextEditorHandler' has virtual functions but non-virtual destructor
  38: */
  39: class TextEditorHandler  : public ComponentTypeHandler
  40: {

**** jucer/src/model/components/
     jucer_JucerComponentHandler.h:
----+-------------------------------------------------------------------------------
    : W: `class JucerComponentHandler' has virtual functions but non-virtual destructor
  44: */
  45: class JucerComponentHandler  : public ComponentTypeHandler
  46: {

**** jucer/src/model/components/
     jucer_HyperlinkButtonHandler.h:
----+-------------------------------------------------------------------------------
    : W: `class HyperlinkButtonHandler' has virtual functions but non-virtual destructor
  40: */
  41: class HyperlinkButtonHandler  : public ButtonHandler
  42: {

**** jucer/src/model/components/
     jucer_ViewportHandler.h:
----+-------------------------------------------------------------------------------
    : W: `class ViewportHandler' has virtual functions but non-virtual destructor
  38: */
  39: class ViewportHandler  : public ComponentTypeHandler
  40: {

**** jucer/src/model/components/
     jucer_GenericComponentHandler.h:
----+-------------------------------------------------------------------------------
    : W: `class GenericComponentHandler' has virtual functions but non-virtual destructor
  88: */
  89: class GenericComponentHandler  : public ComponentTypeHandler
  90: {

**** jucer/src/model/components/
     jucer_ComponentTypeHandler.h:
----+-------------------------------------------------------------------------------
    : W: `class ComponentTypeHandler' has virtual functions but non-virtual destructor
  43: */
  44: class ComponentTypeHandler
  45: {

**** jucer/src/model/
     jucer_PaintRoutine.h:
----+-------------------------------------------------------------------------------
    : W: `PaintRoutine::backgroundColour' will be initialized after
 117:     JucerDocument* document;
 119:     Colour backgroundColour;
----+-------------------------------------------------------------------------------
    : W:   `JucerDocument*PaintRoutine::document'
 115:     SelectedItemSet <PaintElement*> selectedElements;
 116:     SelectedItemSet <PathPoint*> selectedPoints;
 117:     JucerDocument* document;

**** jucer/src/model/
     jucer_PaintRoutine.cpp:
----+-------------------------------------------------------------------------------
    : W:   when initialized here
  45:     : backgroundColour (Colours::white),
  46:       document (0)
  47: {

**** jucer/src/model/paintelements/../components/
     jucer_ComponentTypeHandler.h:
----+-------------------------------------------------------------------------------
    : W: `class ComponentTypeHandler' has virtual functions but non-virtual destructor
  43: */
  44: class ComponentTypeHandler
  45: {

**** jucer/src/model/paintelements/../../properties/
     jucer_PositionPropertyBase.h:
----+-------------------------------------------------------------------------------
    : W: `PositionPropertyBase::allowRelativeOptions' will be initialized after
 472:     Component* component;
 473:     ComponentPositionDimension dimension;
 474:     const bool includeAnchorOptions, allowRelativeOptions;
----+-------------------------------------------------------------------------------
    : W:   `ComponentLayout*PositionPropertyBase::layout'
 466:     };
 468:     ComponentLayout* layout;
----+-------------------------------------------------------------------------------
    : W:   when initialized here
  65:           allowRelativeOptions (allowRelativeOptions_),
  66:           layout (layout_)
  67:     {

**** jucer/src/model/paintelements/
     jucer_ColouredElement.h:
----+-------------------------------------------------------------------------------
    : W: `ColouredElement::isStrokePresent' will be initialized after
  87:     const bool showOutline, showJointAndEnd;
  88:     bool isStrokePresent;
----+-------------------------------------------------------------------------------
    : W:   `const bool ColouredElement::showOutline'
  85:     FillType fillType;
  87:     const bool showOutline, showJointAndEnd;

**** jucer/src/model/paintelements/
     jucer_ColouredElement.cpp:
----+-------------------------------------------------------------------------------
    : W:   when initialized here
 621:       showOutline (showOutline_),
 622:       showJointAndEnd (showJointAndEnd_)
 623: {

**** jucer/src/model/paintelements/../components/
     jucer_ComponentTypeHandler.h:
----+-------------------------------------------------------------------------------
    : W: `class ComponentTypeHandler' has virtual functions but non-virtual destructor
  43: */
  44: class ComponentTypeHandler
  45: {

**** jucer/src/model/paintelements/../../properties/
     jucer_PositionPropertyBase.h:
----+-------------------------------------------------------------------------------
    : W: `PositionPropertyBase::allowRelativeOptions' will be initialized after
 472:     Component* component;
 473:     ComponentPositionDimension dimension;
 474:     const bool includeAnchorOptions, allowRelativeOptions;
----+-------------------------------------------------------------------------------
    : W:   `ComponentLayout*PositionPropertyBase::layout'
 466:     };
 468:     ComponentLayout* layout;
----+-------------------------------------------------------------------------------
    : W:   when initialized here
  65:           allowRelativeOptions (allowRelativeOptions_),
  66:           layout (layout_)
  67:     {

**** jucer/src/model/paintelements/../paintelements/
     jucer_PaintElement.h:
----+-------------------------------------------------------------------------------
    : W: `PaintElement::dragging' will be initialized after
 135:     ResizableBorderComponent* border;
 136:     String typeName;
 137:     bool selected, dragging, mouseDownSelectStatus;
----+-------------------------------------------------------------------------------
    : W:   `int PaintElement::borderThickness'
 100:     void parentHierarchyChanged();
 102:     int borderThickness;

**** jucer/src/model/paintelements/
     jucer_PaintElement.cpp:
----+-------------------------------------------------------------------------------
    : W:   when initialized here
  47:       borderThickness (4),
  48:       originalAspectRatio (1.0)
  49: {

**** jucer/src/model/paintelements/../components/
     jucer_ComponentTypeHandler.h:
----+-------------------------------------------------------------------------------
    : W: `class ComponentTypeHandler' has virtual functions but non-virtual destructor
  43: */
  44: class ComponentTypeHandler
  45: {

**** jucer/src/model/paintelements/../../properties/
     jucer_PositionPropertyBase.h:
----+-------------------------------------------------------------------------------
    : W: `PositionPropertyBase::allowRelativeOptions' will be initialized after
 472:     Component* component;
 473:     ComponentPositionDimension dimension;
 474:     const bool includeAnchorOptions, allowRelativeOptions;
----+-------------------------------------------------------------------------------
    : W:   `ComponentLayout*PositionPropertyBase::layout'
 466:     };
 468:     ComponentLayout* layout;
----+-------------------------------------------------------------------------------
    : W:   when initialized here
  65:           allowRelativeOptions (allowRelativeOptions_),
  66:           layout (layout_)
  67:     {

**** jucer/src/model/paintelements/../components/
     jucer_ComponentTypeHandler.h:
----+-------------------------------------------------------------------------------
    : W: `class ComponentTypeHandler' has virtual functions but non-virtual destructor
  43: */
  44: class ComponentTypeHandler
  45: {

**** jucer/src/ui/../model/components/
     jucer_ComponentTypeHandler.h:
----+-------------------------------------------------------------------------------
    : W: `class ComponentTypeHandler' has virtual functions but non-virtual destructor
  43: */
  44: class ComponentTypeHandler
  45: {

**** jucer/src/ui/
     jucer_ComponentOverlayComponent.h:
----+-------------------------------------------------------------------------------
    : W: `ComponentOverlayComponent::dragging' will be initialized after
  94:     ComponentLayout& layout;
  96:     bool selected, dragging, mouseDownSelectStatus;
----+-------------------------------------------------------------------------------
    : W:   `juce::Component* const ComponentOverlayComponent::target'
  83:     //==============================================================================
  84:     Component* const target;

**** jucer/src/ui/
     jucer_ComponentOverlayComponent.cpp:
----+-------------------------------------------------------------------------------
    : W:   when initialized here
  44:       borderThickness (4),
  45:       originalAspectRatio (1.0)
  46: {

**** jucer/src/ui/../model/components/
     jucer_ComponentTypeHandler.h:
----+-------------------------------------------------------------------------------
    : W: `class ComponentTypeHandler' has virtual functions but non-virtual destructor
  43: */
  44: class ComponentTypeHandler
  45: {

**** jucer/src/ui/
     jucer_JucerDocumentHolder.h:
----+-------------------------------------------------------------------------------
    : W: `JucerDocumentHolder::currentZoomLevel' will be initialized after
  90:     int lastViewportX, lastViewportY;
  92:     double currentZoomLevel;
----+-------------------------------------------------------------------------------
    : W:   `ComponentLayoutPanel*JucerDocumentHolder::compLayoutPanel'
  85:     JucerDocument* const document;
  86:     TabbedComponent* tabbedComponent;
  87:     ComponentLayoutPanel* compLayoutPanel;

**** jucer/src/ui/
     jucer_JucerDocumentHolder.cpp:
----+-------------------------------------------------------------------------------
    : W:   when initialized here
 377:       currentZoomLevel (1.0),
 378:       compLayoutPanel (0)
 379: {

**** jucer/src/ui/../model/components/
     jucer_ComponentTypeHandler.h:
----+-------------------------------------------------------------------------------
    : W: `class ComponentTypeHandler' has virtual functions but non-virtual destructor
  43: */
  44: class ComponentTypeHandler
  45: {

**** jucer/src/ui/
     jucer_PaintRoutinePanel.cpp:
----+-------------------------------------------------------------------------------
    : W: `GraphicsPropsPanel::paintRoutine' will be initialized after
 168: private:
 169:     JucerDocument* document;
 170:     PaintRoutine& paintRoutine;
----+-------------------------------------------------------------------------------
    : W:   `JucerDocument*GraphicsPropsPanel::document'
 168: private:
 169:     JucerDocument* document;
----+-------------------------------------------------------------------------------
    : W:   when initialized here
  84:         : paintRoutine (paintRoutine_),
  85:           document (document_)
  86:     {

**** jucer/src/ui/../model/components/
     jucer_ComponentTypeHandler.h:
----+-------------------------------------------------------------------------------
    : W: `class ComponentTypeHandler' has virtual functions but non-virtual destructor
  43: */
  44: class ComponentTypeHandler
  45: {

#2

Right… Obviously a lot of those are from 3rd party libraries that are embedded, and others are trivial stuff from the demo that aren’t worth tidying up. There’s a couple of useful things in it though, thanks.


#3