diff --git a/extras/Introjucer/Source/Application/jucer_MainWindow.cpp b/extras/Introjucer/Source/Application/jucer_MainWindow.cpp index ca6c5810aa..59639c926e 100644 --- a/extras/Introjucer/Source/Application/jucer_MainWindow.cpp +++ b/extras/Introjucer/Source/Application/jucer_MainWindow.cpp @@ -242,10 +242,13 @@ bool MainWindow::shouldDropFilesWhenDraggedExternally (const DragAndDropTarget:: { for (int i = selected.size(); --i >= 0;) { - const File f (selected.getUnchecked(i)->getDraggableFile()); + if (JucerTreeViewBase* tv = selected.getUnchecked(i)) + { + const File f (tv->getDraggableFile()); - if (f.existsAsFile()) - files.add (f.getFullPathName()); + if (f.existsAsFile()) + files.add (f.getFullPathName()); + } } canMoveFiles = false; diff --git a/extras/Introjucer/Source/Code Editor/jucer_SourceCodeEditor.cpp b/extras/Introjucer/Source/Code Editor/jucer_SourceCodeEditor.cpp index 9dc9d3cab7..13685aecc0 100644 --- a/extras/Introjucer/Source/Code Editor/jucer_SourceCodeEditor.cpp +++ b/extras/Introjucer/Source/Code Editor/jucer_SourceCodeEditor.cpp @@ -400,8 +400,11 @@ void GenericCodeEditorComponent::showFindPanel() resized(); } - findPanel->editor.grabKeyboardFocus(); - findPanel->editor.selectAll(); + if (findPanel != nullptr) + { + findPanel->editor.grabKeyboardFocus(); + findPanel->editor.selectAll(); + } } void GenericCodeEditorComponent::hideFindPanel() diff --git a/modules/juce_core/zip/zlib/deflate.c b/modules/juce_core/zip/zlib/deflate.c index a31971a702..4b8bda58aa 100644 --- a/modules/juce_core/zip/zlib/deflate.c +++ b/modules/juce_core/zip/zlib/deflate.c @@ -333,7 +333,8 @@ int ZEXPORT deflateSetDictionary (z_streamp strm, const Bytef *dictionary, uInt for (n = 0; n <= length - MIN_MATCH; n++) { INSERT_STRING(s, n, hash_head); } - if (hash_head) hash_head = 0; /* to make compiler happy */ + + (void) hash_head; /* to make compiler happy */ return Z_OK; } diff --git a/modules/juce_graphics/image_formats/jpglib/jcparam.c b/modules/juce_graphics/image_formats/jpglib/jcparam.c index a91bc6a9d9..739dcdf4fb 100644 --- a/modules/juce_graphics/image_formats/jpglib/jcparam.c +++ b/modules/juce_graphics/image_formats/jpglib/jcparam.c @@ -592,7 +592,7 @@ jpeg_simple_progression (j_compress_ptr cinfo) scanptr = fill_a_scan(scanptr, 2, 1, 63, 1, 0); scanptr = fill_a_scan(scanptr, 1, 1, 63, 1, 0); /* Luma bottom bit comes last since it's usually largest scan */ - scanptr = fill_a_scan(scanptr, 0, 1, 63, 1, 0); + fill_a_scan(scanptr, 0, 1, 63, 1, 0); } else { /* All-purpose script for other color spaces. */ /* Successive approximation first pass */ @@ -603,7 +603,7 @@ jpeg_simple_progression (j_compress_ptr cinfo) scanptr = fill_scans(scanptr, ncomps, 1, 63, 2, 1); /* Successive approximation final pass */ scanptr = fill_dc_scans(scanptr, ncomps, 1, 0); - scanptr = fill_scans(scanptr, ncomps, 1, 63, 1, 0); + fill_scans(scanptr, ncomps, 1, 63, 1, 0); } }