-Wall: type qualifiers ignored on function return type


#1

Trying to build my project with (g++ -Wall) to catch errors in my code, but am swamped with warnings from JUCE include files. Most frequent are:

juce_audio_utils/gui/juce_MidiKeyboardComponent.h:137:46: warning: type qualifiers ignored on function return type juce_audio_basics/midi/juce_MidiMessage.h:894:96: warning: type qualifiers ignored on function return type juce_core/text/juce_String.h:582:51: warning: type qualifiers ignored on function return type

Don’t know if I’m doing anything wrong - the complete errors seem to appear just from including the Juce headers:

In file included from ../../Source/../JuceLibraryCode/modules/juce_audio_utils/juce_audio_utils.h:51:0, from ../../Source/../JuceLibraryCode/JuceHeader.h:21, from ../../Source/JuceInclude.h:18, from ../../Source/Misc/Microtonal.h:33, from ../../Source/Misc/SynthEngine.h:35, from ../../Source/Effects/Alienwah.cpp:27: ../../Source/../JuceLibraryCode/modules/juce_audio_utils/gui/juce_MidiKeyboardComponent.h:137:46: warning: type qualifiers ignored on function return type


#2

Hmm… those are just minor typos - not in any way serious, and they’ll have no effect on the resulting code, but I’m surprised that I never noticed them before! Thanks, I’ll tidy them up…


#3

Thanks, that cleared up a lot. Here’s what’s left when compiling with -W

[code]…/…/JuceLibraryCode/modules/juce_core/memory/juce_MemoryBlock.cpp: In constructor ‘juce::MemoryBlock::MemoryBlock(const void*, size_t)’:
In file included from …/…/JuceLibraryCode/modules/juce_core/juce_core.cpp:114:0:
…/…/JuceLibraryCode/modules/juce_core/memory/juce_MemoryBlock.cpp:58:5: warning: comparison of unsigned expression >= 0 is always true
…/…/JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp: In function ‘bool juce::SocketHelpers::bindSocketToPort(int, int)’:
In file included from …/…/JuceLibraryCode/modules/juce_core/juce_core.cpp:119:0:
…/…/JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp:78:46: warning: missing initializer for member ‘sockaddr_in::sin_port’
…/…/JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp:78:46: warning: missing initializer for member ‘sockaddr_in::sin_addr’
…/…/JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp:78:46: warning: missing initializer for member ‘sockaddr_in::sin_zero’
…/…/JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp: In function ‘bool juce::SocketHelpers::connectSocket(volatile int&, bool, addrinfo**, const juce::String&, int, int)’:
…/…/JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp:204:37: warning: missing initializer for member ‘addrinfo::ai_family’
…/…/JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp:204:37: warning: missing initializer for member ‘addrinfo::ai_socktype’
…/…/JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp:204:37: warning: missing initializer for member ‘addrinfo::ai_protocol’
…/…/JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp:204:37: warning: missing initializer for member ‘addrinfo::ai_addrlen’
…/…/JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp:204:37: warning: missing initializer for member ‘addrinfo::ai_addr’
…/…/JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp:204:37: warning: missing initializer for member ‘addrinfo::ai_canonname’
…/…/JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp:204:37: warning: missing initializer for member ‘addrinfo::ai_next’
…/…/JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp: In member function ‘bool juce::StreamingSocket::createListener(int, const juce::String&)’:
…/…/JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp:396:42: warning: missing initializer for member ‘sockaddr_in::sin_port’
…/…/JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp:396:42: warning: missing initializer for member ‘sockaddr_in::sin_addr’
…/…/JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp:396:42: warning: missing initializer for member ‘sockaddr_in::sin_zero’
…/…/JuceLibraryCode/modules/juce_core/native/juce_posix_SharedCode.h: In constructor ‘juce::InterProcessLock::Pimpl::Pimpl(const juce::String&, int)’:
In file included from …/…/JuceLibraryCode/modules/juce_core/juce_core.cpp:163:0:
…/…/JuceLibraryCode/modules/juce_core/native/juce_posix_SharedCode.h:737:35: warning: missing initializer for member ‘flock::l_whence’
…/…/JuceLibraryCode/modules/juce_core/native/juce_posix_SharedCode.h:737:35: warning: missing initializer for member ‘flock::l_start’
…/…/JuceLibraryCode/modules/juce_core/native/juce_posix_SharedCode.h:737:35: warning: missing initializer for member ‘flock::l_len’
…/…/JuceLibraryCode/modules/juce_core/native/juce_posix_SharedCode.h:737:35: warning: missing initializer for member ‘flock::l_pid’
…/…/JuceLibraryCode/modules/juce_core/native/juce_posix_SharedCode.h: In member function ‘void juce::InterProcessLock::Pimpl::closeFile()’:
…/…/JuceLibraryCode/modules/juce_core/native/juce_posix_SharedCode.h:775:35: warning: missing initializer for member ‘flock::l_whence’
…/…/JuceLibraryCode/modules/juce_core/native/juce_posix_SharedCode.h:775:35: warning: missing initializer for member ‘flock::l_start’
…/…/JuceLibraryCode/modules/juce_core/native/juce_posix_SharedCode.h:775:35: warning: missing initializer for member ‘flock::l_len’
…/…/JuceLibraryCode/modules/juce_core/native/juce_posix_SharedCode.h:775:35: warning: missing initializer for member ‘flock::l_pid’
…/…/JuceLibraryCode/modules/juce_core/native/juce_linux_Files.cpp: In function ‘juce::File juce::::juce_readlink(const juce::String&, const juce::File&)’:
In file included from …/…/JuceLibraryCode/modules/juce_core/juce_core.cpp:186:0:
…/…/JuceLibraryCode/modules/juce_core/native/juce_linux_Files.cpp:119:41: warning: comparison between signed and unsigned integer expressions
…/…/JuceLibraryCode/modules/juce_core/native/juce_linux_Network.cpp: In member function ‘void juce::WebInputStream::createConnection(bool ()(void, int, int), void*)’:
In file included from …/…/JuceLibraryCode/modules/juce_core/juce_core.cpp:187:0:
…/…/JuceLibraryCode/modules/juce_core/native/juce_linux_Network.cpp:210:37: warning: missing initializer for member ‘addrinfo::ai_family’
…/…/JuceLibraryCode/modules/juce_core/native/juce_linux_Network.cpp:210:37: warning: missing initializer for member ‘addrinfo::ai_socktype’
…/…/JuceLibraryCode/modules/juce_core/native/juce_linux_Network.cpp:210:37: warning: missing initializer for member ‘addrinfo::ai_protocol’
…/…/JuceLibraryCode/modules/juce_core/native/juce_linux_Network.cpp:210:37: warning: missing initializer for member ‘addrinfo::ai_addrlen’
…/…/JuceLibraryCode/modules/juce_core/native/juce_linux_Network.cpp:210:37: warning: missing initializer for member ‘addrinfo::ai_addr’
…/…/JuceLibraryCode/modules/juce_core/native/juce_linux_Network.cpp:210:37: warning: missing initializer for member ‘addrinfo::ai_canonname’
…/…/JuceLibraryCode/modules/juce_core/native/juce_linux_Network.cpp:210:37: warning: missing initializer for member ‘addrinfo::ai_next’

…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/png.c: In function ‘void juce::pnglibNamespace::png_data_freer(juce::pnglibNamespace::png_struct*, juce::pnglibNamespace::png_info*, int, juce::pnglibNamespace::png_uint_32)’:
In file included from …/…/JuceLibraryCode/modules/juce_graphics/image_formats/juce_PNGLoader.cpp:72:0,
from …/…/JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp:101:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/png.c:334:55: warning: suggest braces around empty body in an ‘else’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngread.c: In function ‘void juce::pnglibNamespace::png_read_update_info(juce::pnglibNamespace::png_struct*, juce::pnglibNamespace::png_info*)’:
In file included from …/…/JuceLibraryCode/modules/juce_graphics/image_formats/juce_PNGLoader.cpp:76:0,
from …/…/JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp:101:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngread.c:543:80: warning: suggest braces around empty body in an ‘else’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngpread.c: In function ‘void juce::pnglibNamespace::png_push_read_tEXt(juce::pnglibNamespace::png_struct*, juce::pnglibNamespace::png_info*)’:
In file included from …/…/JuceLibraryCode/modules/juce_graphics/image_formats/juce_PNGLoader.cpp:77:0,
from …/…/JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp:101:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngpread.c:1146:73: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngpread.c: In function ‘void juce::pnglibNamespace::png_push_read_zTXt(juce::pnglibNamespace::png_struct*, juce::pnglibNamespace::png_info*)’:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngpread.c:1338:73: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrtran.c: In function ‘void juce::pnglibNamespace::png_do_read_transformations(juce::pnglibNamespace::png_struct*)’:
In file included from …/…/JuceLibraryCode/modules/juce_graphics/image_formats/juce_PNGLoader.cpp:79:0,
from …/…/JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp:101:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrtran.c:1325:75: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c: In function ‘char* juce::pnglibNamespace::png_decompress_chunk(juce::pnglibNamespace::png_struct*, int, char*, juce::pnglibNamespace::png_size_t, juce::pnglibNamespace::png_size_t, juce::pnglibNamespace::png_size_t*)’:
In file included from …/…/JuceLibraryCode/modules/juce_graphics/image_formats/juce_PNGLoader.cpp:80:0,
from …/…/JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp:101:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c:211:41: warning: suggest braces around empty body in an ‘else’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c: In function ‘void juce::pnglibNamespace::png_handle_gAMA(juce::pnglibNamespace::png_struct*, juce::pnglibNamespace::png_info*, juce::pnglibNamespace::png_uint_32)’:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c:599:54: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c: In function ‘void juce::pnglibNamespace::png_handle_cHRM(juce::pnglibNamespace::png_struct*, juce::pnglibNamespace::png_info*, juce::pnglibNamespace::png_uint_32)’:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c:749:55: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c: In function ‘void juce::pnglibNamespace::png_handle_sRGB(juce::pnglibNamespace::png_struct*, juce::pnglibNamespace::png_info*, juce::pnglibNamespace::png_uint_32)’:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c:907:54: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c: In function ‘void juce::pnglibNamespace::png_handle_tEXt(juce::pnglibNamespace::png_struct*, juce::pnglibNamespace::png_info*, juce::pnglibNamespace::png_uint_32)’:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c:1954:72: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c: In function ‘void juce::pnglibNamespace::png_read_finish_row(juce::pnglibNamespace::png_struct*)’:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c:2947:61: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c:2969:53: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngset.c: In function ‘void juce::pnglibNamespace::png_set_gAMA(juce::pnglibNamespace::png_struct*, juce::pnglibNamespace::png_info*, double)’:
In file included from …/…/JuceLibraryCode/modules/juce_graphics/image_formats/juce_PNGLoader.cpp:81:0,
from …/…/JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp:101:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngset.c:176:46: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngset.c: In function ‘void juce::pnglibNamespace::png_set_gAMA_fixed(juce::pnglibNamespace::png_struct*, juce::pnglibNamespace::png_info*, juce::pnglibNamespace::png_fixed_point)’:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngset.c:212:46: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngset.c: In function ‘void juce::pnglibNamespace::png_set_IHDR(juce::pnglibNamespace::png_struct*, juce::pnglibNamespace::png_info*, juce::pnglibNamespace::png_uint_32, juce::pnglibNamespace::png_uint_32, int, int, int, int, int)’:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngset.c:287:78: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngset.c:321:78: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngset.c:331:62: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwrite.c: In function ‘void juce::pnglibNamespace::png_set_compression_window_bits(juce::pnglibNamespace::png_struct*, int)’:
In file included from …/…/JuceLibraryCode/modules/juce_graphics/image_formats/juce_PNGLoader.cpp:84:0,
from …/…/JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp:101:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwrite.c:1383:79: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwrite.c: In function ‘void juce::pnglibNamespace::png_set_compression_method(juce::pnglibNamespace::png_struct*, int)’:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwrite.c:1403:76: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c: In function ‘void juce::pnglibNamespace::png_write_sRGB(juce::pnglibNamespace::png_struct*, int)’:
In file included from …/…/JuceLibraryCode/modules/juce_graphics/image_formats/juce_PNGLoader.cpp:86:0,
from …/…/JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp:101:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c:719:55: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c: In function ‘void juce::pnglibNamespace::png_write_iCCP(juce::pnglibNamespace::png_struct*, char*, int, char*, int)’:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c:755:69: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c: In function ‘juce::pnglibNamespace::png_size_t juce::pnglibNamespace::png_check_keyword(juce::pnglibNamespace::png_struct*, char*, char**)’:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c:1304:73: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c: In function ‘void juce::pnglibNamespace::png_write_oFFs(juce::pnglibNamespace::png_struct*, juce::pnglibNamespace::png_int_32, juce::pnglibNamespace::png_int_32, int)’:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c:1526:68: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c: In function ‘void juce::pnglibNamespace::png_write_pCAL(juce::pnglibNamespace::png_struct*, char*, juce::pnglibNamespace::png_int_32, juce::pnglibNamespace::png_int_32, int, int, char*, char**)’:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c:1552:72: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c: In function ‘void juce::pnglibNamespace::png_write_pHYs(juce::pnglibNamespace::png_struct*, juce::pnglibNamespace::png_uint_32, juce::pnglibNamespace::png_uint_32, int)’:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c:1683:68: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_gui_basics/drawables/juce_Drawable.cpp: In copy constructor ‘juce::Drawable::Drawable(const juce::Drawable&)’:
In file included from …/…/JuceLibraryCode/modules/juce_gui_basics/juce_gui_basics.cpp:161:0:
…/…/JuceLibraryCode/modules/juce_gui_basics/drawables/juce_Drawable.cpp:32:1: warning: base class ‘class juce::Component’ should be explicitly initialized in the copy constructor
…/…/JuceLibraryCode/modules/juce_gui_basics/commands/juce_KeyPressMappingSet.cpp: In copy constructor ‘juce::KeyPressMappingSet::KeyPressMappingSet(const juce::KeyPressMappingSet&)’:
In file included from …/…/JuceLibraryCode/modules/juce_gui_basics/juce_gui_basics.cpp:241:0:
…/…/JuceLibraryCode/modules/juce_gui_basics/commands/juce_KeyPressMappingSet.cpp:32:1: warning: base class ‘class juce::ChangeBroadcaster’ should be explicitly initialized in the copy constructor
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp: In function ‘bool juce::XSHMHelpers::isShmAvailable()’:
In file included from …/…/JuceLibraryCode/modules/juce_gui_basics/juce_gui_basics.cpp:284:0:
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:225:51: warning: missing initializer for member ‘XShmSegmentInfo::shmid’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:225:51: warning: missing initializer for member ‘XShmSegmentInfo::shmaddr’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:225:51: warning: missing initializer for member ‘XShmSegmentInfo::readOnly’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp: In member function ‘void juce::LinuxComponentPeer::removeWindowDecorations(Window)’:
In file included from …/…/JuceLibraryCode/modules/juce_gui_basics/juce_gui_basics.cpp:284:0:
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2060:43: warning: missing initializer for member ‘juce::LinuxComponentPeer::MotifWmHints::functions’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2060:43: warning: missing initializer for member ‘juce::LinuxComponentPeer::MotifWmHints::decorations’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2060:43: warning: missing initializer for member ‘juce::LinuxComponentPeer::MotifWmHints::input_mode’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2060:43: warning: missing initializer for member ‘juce::LinuxComponentPeer::MotifWmHints::status’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp: In member function ‘void juce::LinuxComponentPeer::addWindowButtons(Window)’:
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2096:43: warning: missing initializer for member ‘juce::LinuxComponentPeer::MotifWmHints::functions’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2096:43: warning: missing initializer for member ‘juce::LinuxComponentPeer::MotifWmHints::decorations’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2096:43: warning: missing initializer for member ‘juce::LinuxComponentPeer::MotifWmHints::input_mode’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2096:43: warning: missing initializer for member ‘juce::LinuxComponentPeer::MotifWmHints::status’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp: In member function ‘void juce::LinuxComponentPeer::sendExternalDragAndDropDrop(Window)’:
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2434:39: warning: missing initializer for member ‘XClientMessageEvent::serial’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2434:39: warning: missing initializer for member ‘XClientMessageEvent::send_event’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2434:39: warning: missing initializer for member ‘XClientMessageEvent::display’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2434:39: warning: missing initializer for member ‘XClientMessageEvent::window’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2434:39: warning: missing initializer for member ‘XClientMessageEvent::message_type’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2434:39: warning: missing initializer for member ‘XClientMessageEvent::format’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2434:39: warning: missing initializer for member ‘XClientMessageEvent::data’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp: In member function ‘void juce::LinuxComponentPeer::sendExternalDragAndDropEnter(Window)’:
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2443:39: warning: missing initializer for member ‘XClientMessageEvent::serial’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2443:39: warning: missing initializer for member ‘XClientMessageEvent::send_event’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2443:39: warning: missing initializer for member ‘XClientMessageEvent::display’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2443:39: warning: missing initializer for member ‘XClientMessageEvent::window’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2443:39: warning: missing initializer for member ‘XClientMessageEvent::message_type’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2443:39: warning: missing initializer for member ‘XClientMessageEvent::format’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2443:39: warning: missing initializer for member ‘XClientMessageEvent::data’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp: In member function ‘void juce::LinuxComponentPeer::sendExternalDragAndDropPosition(Window)’:
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2461:39: warning: missing initializer for member ‘XClientMessageEvent::serial’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2461:39: warning: missing initializer for member ‘XClientMessageEvent::send_event’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2461:39: warning: missing initializer for member ‘XClientMessageEvent::display’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2461:39: warning: missing initializer for member ‘XClientMessageEvent::window’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2461:39: warning: missing initializer for member ‘XClientMessageEvent::message_type’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2461:39: warning: missing initializer for member ‘XClientMessageEvent::format’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2461:39: warning: missing initializer for member ‘XClientMessageEvent::data’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp: In member function ‘void juce::LinuxComponentPeer::sendDragAndDropStatus(bool, Atom)’:
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2479:39: warning: missing initializer for member ‘XClientMessageEvent::serial’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2479:39: warning: missing initializer for member ‘XClientMessageEvent::send_event’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2479:39: warning: missing initializer for member ‘XClientMessageEvent::display’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2479:39: warning: missing initializer for member ‘XClientMessageEvent::window’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2479:39: warning: missing initializer for member ‘XClientMessageEvent::message_type’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2479:39: warning: missing initializer for member ‘XClientMessageEvent::format’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2479:39: warning: missing initializer for member ‘XClientMessageEvent::data’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp: In member function ‘void juce::LinuxComponentPeer::sendExternalDragAndDropLeave(Window)’:
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2489:39: warning: missing initializer for member ‘XClientMessageEvent::serial’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2489:39: warning: missing initializer for member ‘XClientMessageEvent::send_event’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2489:39: warning: missing initializer for member ‘XClientMessageEvent::display’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2489:39: warning: missing initializer for member ‘XClientMessageEvent::window’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2489:39: warning: missing initializer for member ‘XClientMessageEvent::message_type’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2489:39: warning: missing initializer for member ‘XClientMessageEvent::format’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2489:39: warning: missing initializer for member ‘XClientMessageEvent::data’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp: In member function ‘void juce::LinuxComponentPeer::sendDragAndDropFinish()’:
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2496:39: warning: missing initializer for member ‘XClientMessageEvent::serial’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2496:39: warning: missing initializer for member ‘XClientMessageEvent::send_event’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2496:39: warning: missing initializer for member ‘XClientMessageEvent::display’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2496:39: warning: missing initializer for member ‘XClientMessageEvent::window’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2496:39: warning: missing initializer for member ‘XClientMessageEvent::message_type’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2496:39: warning: missing initializer for member ‘XClientMessageEvent::format’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2496:39: warning: missing initializer for member ‘XClientMessageEvent::data’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp: In member function ‘void juce::LinuxComponentPeer::handleExternalDragAndDropStatus(const XClientMessageEvent&)’:
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2542:58: warning: comparison between signed and unsigned integer expressions
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2543:62: warning: comparison between signed and unsigned integer expressions
[/code]


#4

I think the “missing initialiser” ones are incorrect, and GCC 4.6 doesn’t give me those errors when I try it - perhaps you’re using an older version of the compiler?

But yes, there are a couple of other bits that I can tighten up there, thanks!


#5

Yes, I also found them strange. This is using GCC 4.5.2.

Finally, this is what’s left when using -Wall, filtering out the missing initializer lines:

[code]In file included from …/…/JuceLibraryCode/modules/juce_audio_devices/juce_audio_devices.cpp:212:0:
…/…/JuceLibraryCode/modules/juce_audio_devices/native/juce_linux_ALSA.cpp:933:9: warning: unused parameter ‘forInput’
In file included from …/…/JuceLibraryCode/modules/juce_audio_devices/juce_audio_devices.cpp:218:0:
…/…/JuceLibraryCode/modules/juce_audio_devices/native/juce_linux_JackAudio.cpp:198:12: warning: unused parameter ‘index’
…/…/JuceLibraryCode/modules/juce_audio_devices/native/juce_linux_JackAudio.cpp:200:9: warning: unused parameter ‘index’
…/…/JuceLibraryCode/modules/juce_audio_devices/native/juce_linux_JackAudio.cpp:203:12: warning: unused parameter ‘sampleRate’
…/…/JuceLibraryCode/modules/juce_audio_devices/native/juce_linux_JackAudio.cpp:203:12: warning: unused parameter ‘bufferSizeSamples’
…/…/JuceLibraryCode/modules/juce_audio_devices/native/juce_linux_JackAudio.cpp:405:17: warning: unused parameter ‘callbackArgument’
…/…/JuceLibraryCode/modules/juce_audio_devices/native/juce_linux_JackAudio.cpp:537:9: warning: unused parameter ‘forInput’

In file included from …/…/JuceLibraryCode/modules/juce_audio_formats/codecs/juce_FlacAudioFormat.cpp:69:0,
from …/…/JuceLibraryCode/modules/juce_audio_formats/juce_audio_formats.cpp:110:
…/…/JuceLibraryCode/modules/juce_audio_formats/codecs/flac/libFLAC/stream_encoder.c:2440:32: warning: unused parameter ‘is_last_block’
In file included from …/…/JuceLibraryCode/modules/juce_audio_formats/codecs/oggvorbis/libvorbis-1.3.2/lib/bitrate.h:23:0,
from …/…/JuceLibraryCode/modules/juce_audio_formats/codecs/oggvorbis/libvorbis-1.3.2/lib/codec_internal.h:59,
from …/…/JuceLibraryCode/modules/juce_audio_formats/codecs/oggvorbis/libvorbis-1.3.2/lib/analysis.c:23,
from …/…/JuceLibraryCode/modules/juce_audio_formats/codecs/juce_OggVorbisAudioFormat.cpp:52,
from …/…/JuceLibraryCode/modules/juce_audio_formats/juce_audio_formats.cpp:112:
…/…/JuceLibraryCode/modules/juce_audio_formats/codecs/oggvorbis/libvorbis-1.3.2/lib/os.h:158:22: warning: unused parameter ‘fpu’
…/…/JuceLibraryCode/modules/juce_audio_formats/codecs/oggvorbis/libvorbis-1.3.2/lib/os.h:161:22: warning: unused parameter ‘fpu’
In file included from …/…/JuceLibraryCode/modules/juce_audio_formats/codecs/juce_OggVorbisAudioFormat.cpp:57:0,
from …/…/JuceLibraryCode/modules/juce_audio_formats/juce_audio_formats.cpp:112:
…/…/JuceLibraryCode/modules/juce_audio_formats/codecs/oggvorbis/libvorbis-1.3.2/lib/floor0.c:147:27: warning: unused parameter ‘vd’
In file included from …/…/JuceLibraryCode/modules/juce_audio_formats/codecs/juce_OggVorbisAudioFormat.cpp:58:0,
from …/…/JuceLibraryCode/modules/juce_audio_formats/juce_audio_formats.cpp:112:
…/…/JuceLibraryCode/modules/juce_audio_formats/codecs/oggvorbis/libvorbis-1.3.2/lib/floor1.c:178:27: warning: unused parameter ‘vd’
In file included from …/…/JuceLibraryCode/modules/juce_audio_formats/codecs/juce_OggVorbisAudioFormat.cpp:66:0,
from …/…/JuceLibraryCode/modules/juce_audio_formats/juce_audio_formats.cpp:112:
…/…/JuceLibraryCode/modules/juce_audio_formats/codecs/oggvorbis/libvorbis-1.3.2/lib/res0.c:395:12: warning: unused parameter ‘acc’
…/…/JuceLibraryCode/modules/juce_audio_formats/codecs/oggvorbis/libvorbis-1.3.2/lib/res0.c:538:12: warning: unused parameter ‘vb’
…/…/JuceLibraryCode/modules/juce_audio_formats/codecs/oggvorbis/libvorbis-1.3.2/lib/res0.c:538:12: warning: unused parameter ‘submap’

…/…/JuceLibraryCode/modules/juce_core/native/juce_linux_Network.cpp: At global scope:
In file included from …/…/JuceLibraryCode/modules/juce_core/juce_core.cpp:187:0:
…/…/JuceLibraryCode/modules/juce_core/native/juce_linux_Network.cpp:55:6: warning: unused parameter ‘targetEmailAddress’
…/…/JuceLibraryCode/modules/juce_core/native/juce_linux_Network.cpp:55:6: warning: unused parameter ‘emailSubject’
…/…/JuceLibraryCode/modules/juce_core/native/juce_linux_Network.cpp:55:6: warning: unused parameter ‘bodyText’
…/…/JuceLibraryCode/modules/juce_core/native/juce_linux_Network.cpp:55:6: warning: unused parameter ‘filesToAttach’

In file included from …/…/JuceLibraryCode/modules/juce_events/juce_events.cpp:98:0:
…/…/JuceLibraryCode/modules/juce_events/native/juce_linux_Messaging.cpp:227:9: warning: unused parameter ‘display’
…/…/JuceLibraryCode/modules/juce_events/native/juce_linux_Messaging.cpp:367:6: warning: unused parameter ‘value’

…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/png.c: In function ‘void juce::pnglibNamespace::png_data_freer(juce::pnglibNamespace::png_struct*, juce::pnglibNamespace::png_info*, int, juce::pnglibNamespace::png_uint_32)’:
In file included from …/…/JuceLibraryCode/modules/juce_graphics/image_formats/juce_PNGLoader.cpp:72:0,
from …/…/JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp:101:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/png.c:334:55: warning: suggest braces around empty body in an ‘else’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngread.c: In function ‘void juce::pnglibNamespace::png_read_update_info(juce::pnglibNamespace::png_struct*, juce::pnglibNamespace::png_info*)’:
In file included from …/…/JuceLibraryCode/modules/juce_graphics/image_formats/juce_PNGLoader.cpp:76:0,
from …/…/JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp:101:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngread.c:543:80: warning: suggest braces around empty body in an ‘else’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngpread.c: In function ‘void juce::pnglibNamespace::png_push_read_tEXt(juce::pnglibNamespace::png_struct*, juce::pnglibNamespace::png_info*)’:
In file included from …/…/JuceLibraryCode/modules/juce_graphics/image_formats/juce_PNGLoader.cpp:77:0,
from …/…/JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp:101:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngpread.c:1146:73: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngpread.c: In function ‘void juce::pnglibNamespace::png_push_read_zTXt(juce::pnglibNamespace::png_struct*, juce::pnglibNamespace::png_info*)’:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngpread.c:1338:73: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrtran.c: In function ‘void juce::pnglibNamespace::png_do_read_transformations(juce::pnglibNamespace::png_struct*)’:
In file included from …/…/JuceLibraryCode/modules/juce_graphics/image_formats/juce_PNGLoader.cpp:79:0,
from …/…/JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp:101:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrtran.c:1325:75: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c: In function ‘char* juce::pnglibNamespace::png_decompress_chunk(juce::pnglibNamespace::png_struct*, int, char*, juce::pnglibNamespace::png_size_t, juce::pnglibNamespace::png_size_t, juce::pnglibNamespace::png_size_t*)’:
In file included from …/…/JuceLibraryCode/modules/juce_graphics/image_formats/juce_PNGLoader.cpp:80:0,
from …/…/JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp:101:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c:211:41: warning: suggest braces around empty body in an ‘else’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c: In function ‘void juce::pnglibNamespace::png_handle_gAMA(juce::pnglibNamespace::png_struct*, juce::pnglibNamespace::png_info*, juce::pnglibNamespace::png_uint_32)’:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c:599:54: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c: In function ‘void juce::pnglibNamespace::png_handle_cHRM(juce::pnglibNamespace::png_struct*, juce::pnglibNamespace::png_info*, juce::pnglibNamespace::png_uint_32)’:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c:749:55: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c: In function ‘void juce::pnglibNamespace::png_handle_sRGB(juce::pnglibNamespace::png_struct*, juce::pnglibNamespace::png_info*, juce::pnglibNamespace::png_uint_32)’:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c:907:54: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c: In function ‘void juce::pnglibNamespace::png_handle_tEXt(juce::pnglibNamespace::png_struct*, juce::pnglibNamespace::png_info*, juce::pnglibNamespace::png_uint_32)’:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c:1954:72: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c: In function ‘void juce::pnglibNamespace::png_read_finish_row(juce::pnglibNamespace::png_struct*)’:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c:2947:61: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c:2969:53: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngset.c: In function ‘void juce::pnglibNamespace::png_set_gAMA(juce::pnglibNamespace::png_struct*, juce::pnglibNamespace::png_info*, double)’:
In file included from …/…/JuceLibraryCode/modules/juce_graphics/image_formats/juce_PNGLoader.cpp:81:0,
from …/…/JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp:101:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngset.c:176:46: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngset.c: In function ‘void juce::pnglibNamespace::png_set_gAMA_fixed(juce::pnglibNamespace::png_struct*, juce::pnglibNamespace::png_info*, juce::pnglibNamespace::png_fixed_point)’:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngset.c:212:46: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngset.c: In function ‘void juce::pnglibNamespace::png_set_IHDR(juce::pnglibNamespace::png_struct*, juce::pnglibNamespace::png_info*, juce::pnglibNamespace::png_uint_32, juce::pnglibNamespace::png_uint_32, int, int, int, int, int)’:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngset.c:287:78: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngset.c:321:78: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngset.c:331:62: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwrite.c: In function ‘void juce::pnglibNamespace::png_set_compression_window_bits(juce::pnglibNamespace::png_struct*, int)’:
In file included from …/…/JuceLibraryCode/modules/juce_graphics/image_formats/juce_PNGLoader.cpp:84:0,
from …/…/JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp:101:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwrite.c:1383:79: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwrite.c: In function ‘void juce::pnglibNamespace::png_set_compression_method(juce::pnglibNamespace::png_struct*, int)’:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwrite.c:1403:76: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c: In function ‘void juce::pnglibNamespace::png_write_sRGB(juce::pnglibNamespace::png_struct*, int)’:
In file included from …/…/JuceLibraryCode/modules/juce_graphics/image_formats/juce_PNGLoader.cpp:86:0,
from …/…/JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp:101:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c:719:55: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c: In function ‘void juce::pnglibNamespace::png_write_iCCP(juce::pnglibNamespace::png_struct*, char*, int, char*, int)’:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c:755:69: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c: In function ‘juce::pnglibNamespace::png_size_t juce::pnglibNamespace::png_check_keyword(juce::pnglibNamespace::png_struct*, char*, char**)’:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c:1304:73: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c: In function ‘void juce::pnglibNamespace::png_write_oFFs(juce::pnglibNamespace::png_struct*, juce::pnglibNamespace::png_int_32, juce::pnglibNamespace::png_int_32, int)’:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c:1526:68: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c: In function ‘void juce::pnglibNamespace::png_write_pCAL(juce::pnglibNamespace::png_struct*, char*, juce::pnglibNamespace::png_int_32, juce::pnglibNamespace::png_int_32, int, int, char*, char**)’:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c:1552:72: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c: In function ‘void juce::pnglibNamespace::png_write_pHYs(juce::pnglibNamespace::png_struct*, juce::pnglibNamespace::png_uint_32, juce::pnglibNamespace::png_uint_32, int)’:
…/…/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c:1683:68: warning: suggest braces around empty body in an ‘if’ statement
…/…/JuceLibraryCode/modules/juce_gui_basics/drawables/juce_Drawable.cpp: In copy constructor ‘juce::Drawable::Drawable(const juce::Drawable&)’:
In file included from …/…/JuceLibraryCode/modules/juce_gui_basics/juce_gui_basics.cpp:161:0:
…/…/JuceLibraryCode/modules/juce_gui_basics/drawables/juce_Drawable.cpp:32:1: warning: base class ‘class juce::Component’ should be explicitly initialized in the copy constructor
In file included from …/…/JuceLibraryCode/modules/juce_gui_extra/juce_gui_extra.cpp:139:0:
…/…/JuceLibraryCode/modules/juce_gui_extra/native/juce_linux_SystemTrayIcon.cpp:121:6: warning: unused parameter ‘tooltip’
…/…/JuceLibraryCode/modules/juce_gui_basics/commands/juce_KeyPressMappingSet.cpp: In copy constructor ‘juce::KeyPressMappingSet::KeyPressMappingSet(const juce::KeyPressMappingSet&)’:
In file included from …/…/JuceLibraryCode/modules/juce_gui_basics/juce_gui_basics.cpp:241:0:
…/…/JuceLibraryCode/modules/juce_gui_basics/commands/juce_KeyPressMappingSet.cpp:32:1: warning: base class ‘class juce::ChangeBroadcaster’ should be explicitly initialized in the copy constructor
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Clipboard.cpp: At global scope:
In file included from …/…/JuceLibraryCode/modules/juce_gui_basics/juce_gui_basics.cpp:283:0:
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Clipboard.cpp:51:19: warning: unused parameter ‘fmt’

…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp: At global scope:
In file included from …/…/JuceLibraryCode/modules/juce_gui_basics/juce_gui_basics.cpp:284:0:
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:966:10: warning: unused parameter ‘newAlpha’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:1112:10: warning: unused parameter ‘alwaysOnTop’

…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp: At global scope:
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2554:10: warning: unused parameter ‘buttonRelEvent’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2955:6: warning: unused parameter ‘allowMenusAndBars’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:3337:7: warning: unused parameter ‘file’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:3381:20: warning: unused parameter ‘iconType’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:3381:20: warning: unused parameter ‘associatedComponent’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:3388:20: warning: unused parameter ‘iconType’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:3388:20: warning: unused parameter ‘associatedComponent’
In file included from …/…/JuceLibraryCode/modules/juce_gui_basics/juce_gui_basics.cpp:285:0:
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_FileChooser.cpp:41:6: warning: unused parameter ‘filters’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_FileChooser.cpp:41:6: warning: unused parameter ‘selectsFiles’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_FileChooser.cpp:41:6: warning: unused parameter ‘warnAboutOverwritingExistingFiles’
…/…/JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_FileChooser.cpp:41:6: warning: unused parameter ‘previewComponent’
[/code]


#6

After my latest check-in I was getting no warnings with gcc4.6 any more, so am not going to pursue this unless you find problems with the latest compiler.


#7

Fair enough. But are you sure you’re compiling everything with ‘-W -Wall’?

This is with GCC 4.6.3. Using latest git tip, Introjucer to create an empty GUI application, adding -W -Wall to compiler flags and then make:

Compiling juce_audio_basics.cpp                                                                                                                                          
Compiling juce_audio_devices.cpp                                                                                                                                         
In file included from ../../JuceLibraryCode/modules/juce_audio_devices/juce_audio_devices.cpp:212:0:                                                                     
../../JuceLibraryCode/modules/juce_audio_devices/native/juce_linux_ALSA.cpp:933:9: warning: unused parameter ‘forInput’ [-Wunused-parameter]                             
Compiling juce_audio_formats.cpp                                                                                                                                         
In file included from ../../JuceLibraryCode/modules/juce_audio_formats/codecs/juce_FlacAudioFormat.cpp:69:0,                                                             
                 from ../../JuceLibraryCode/modules/juce_audio_formats/juce_audio_formats.cpp:110:                                                                       
../../JuceLibraryCode/modules/juce_audio_formats/codecs/flac/libFLAC/stream_encoder.c:2440:32: warning: unused parameter ‘is_last_block’ [-Wunused-parameter]            
In file included from ../../JuceLibraryCode/modules/juce_audio_formats/codecs/juce_OggVorbisAudioFormat.cpp:57:0,                                                        
                 from ../../JuceLibraryCode/modules/juce_audio_formats/juce_audio_formats.cpp:112:                                                                       
../../JuceLibraryCode/modules/juce_audio_formats/codecs/oggvorbis/libvorbis-1.3.2/lib/floor0.c:147:27: warning: unused parameter ‘vd’ [-Wunused-parameter]
In file included from ../../JuceLibraryCode/modules/juce_audio_formats/codecs/juce_OggVorbisAudioFormat.cpp:58:0,
                 from ../../JuceLibraryCode/modules/juce_audio_formats/juce_audio_formats.cpp:112:
../../JuceLibraryCode/modules/juce_audio_formats/codecs/oggvorbis/libvorbis-1.3.2/lib/floor1.c:178:27: warning: unused parameter ‘vd’ [-Wunused-parameter]
In file included from ../../JuceLibraryCode/modules/juce_audio_formats/codecs/juce_OggVorbisAudioFormat.cpp:66:0,
                 from ../../JuceLibraryCode/modules/juce_audio_formats/juce_audio_formats.cpp:112:
../../JuceLibraryCode/modules/juce_audio_formats/codecs/oggvorbis/libvorbis-1.3.2/lib/res0.c:395:12: warning: unused parameter ‘acc’ [-Wunused-parameter]
../../JuceLibraryCode/modules/juce_audio_formats/codecs/oggvorbis/libvorbis-1.3.2/lib/res0.c:538:12: warning: unused parameter ‘vb’ [-Wunused-parameter]
../../JuceLibraryCode/modules/juce_audio_formats/codecs/oggvorbis/libvorbis-1.3.2/lib/res0.c:538:12: warning: unused parameter ‘submap’ [-Wunused-parameter]
Compiling juce_audio_processors.cpp
Compiling juce_audio_utils.cpp
Compiling juce_core.cpp
In file included from ../../JuceLibraryCode/modules/juce_core/juce_core.cpp:119:0:
../../JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp: In function ‘bool juce::SocketHelpers::bindSocketToPort(int, int)’:
../../JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp:78:46: warning: missing initializer for member ‘sockaddr_in::sin_port’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp:78:46: warning: missing initializer for member ‘sockaddr_in::sin_addr’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp:78:46: warning: missing initializer for member ‘sockaddr_in::sin_zero’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp: In function ‘bool juce::SocketHelpers::connectSocket(volatile int&, bool, addrinfo**, const juce::String&, int, int)’:
../../JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp:204:37: warning: missing initializer for member ‘addrinfo::ai_family’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp:204:37: warning: missing initializer for member ‘addrinfo::ai_socktype’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp:204:37: warning: missing initializer for member ‘addrinfo::ai_protocol’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp:204:37: warning: missing initializer for member ‘addrinfo::ai_addrlen’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp:204:37: warning: missing initializer for member ‘addrinfo::ai_addr’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp:204:37: warning: missing initializer for member ‘addrinfo::ai_canonname’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp:204:37: warning: missing initializer for member ‘addrinfo::ai_next’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp: In member function ‘bool juce::StreamingSocket::createListener(int, const juce::String&)’:
../../JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp:396:42: warning: missing initializer for member ‘sockaddr_in::sin_port’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp:396:42: warning: missing initializer for member ‘sockaddr_in::sin_addr’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_core/network/juce_Socket.cpp:396:42: warning: missing initializer for member ‘sockaddr_in::sin_zero’ [-Wmissing-field-initializers]
In file included from ../../JuceLibraryCode/modules/juce_core/juce_core.cpp:163:0:
../../JuceLibraryCode/modules/juce_core/native/juce_posix_SharedCode.h: In constructor ‘juce::InterProcessLock::Pimpl::Pimpl(const juce::String&, int)’:
../../JuceLibraryCode/modules/juce_core/native/juce_posix_SharedCode.h:737:35: warning: missing initializer for member ‘flock::l_whence’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_core/native/juce_posix_SharedCode.h:737:35: warning: missing initializer for member ‘flock::l_start’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_core/native/juce_posix_SharedCode.h:737:35: warning: missing initializer for member ‘flock::l_len’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_core/native/juce_posix_SharedCode.h:737:35: warning: missing initializer for member ‘flock::l_pid’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_core/native/juce_posix_SharedCode.h: In member function ‘void juce::InterProcessLock::Pimpl::closeFile()’:
../../JuceLibraryCode/modules/juce_core/native/juce_posix_SharedCode.h:775:35: warning: missing initializer for member ‘flock::l_whence’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_core/native/juce_posix_SharedCode.h:775:35: warning: missing initializer for member ‘flock::l_start’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_core/native/juce_posix_SharedCode.h:775:35: warning: missing initializer for member ‘flock::l_len’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_core/native/juce_posix_SharedCode.h:775:35: warning: missing initializer for member ‘flock::l_pid’ [-Wmissing-field-initializers]
In file included from ../../JuceLibraryCode/modules/juce_core/juce_core.cpp:187:0:
../../JuceLibraryCode/modules/juce_core/native/juce_linux_Network.cpp: At global scope:
../../JuceLibraryCode/modules/juce_core/native/juce_linux_Network.cpp:55:6: warning: unused parameter ‘targetEmailAddress’ [-Wunused-parameter]
../../JuceLibraryCode/modules/juce_core/native/juce_linux_Network.cpp:55:6: warning: unused parameter ‘emailSubject’ [-Wunused-parameter]
../../JuceLibraryCode/modules/juce_core/native/juce_linux_Network.cpp:55:6: warning: unused parameter ‘bodyText’ [-Wunused-parameter]
../../JuceLibraryCode/modules/juce_core/native/juce_linux_Network.cpp:55:6: warning: unused parameter ‘filesToAttach’ [-Wunused-parameter]
../../JuceLibraryCode/modules/juce_core/native/juce_linux_Network.cpp: In member function ‘void juce::WebInputStream::createConnection(bool (*)(void*, int, int), void*)’:
../../JuceLibraryCode/modules/juce_core/native/juce_linux_Network.cpp:210:37: warning: missing initializer for member ‘addrinfo::ai_family’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_core/native/juce_linux_Network.cpp:210:37: warning: missing initializer for member ‘addrinfo::ai_socktype’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_core/native/juce_linux_Network.cpp:210:37: warning: missing initializer for member ‘addrinfo::ai_protocol’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_core/native/juce_linux_Network.cpp:210:37: warning: missing initializer for member ‘addrinfo::ai_addrlen’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_core/native/juce_linux_Network.cpp:210:37: warning: missing initializer for member ‘addrinfo::ai_addr’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_core/native/juce_linux_Network.cpp:210:37: warning: missing initializer for member ‘addrinfo::ai_canonname’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_core/native/juce_linux_Network.cpp:210:37: warning: missing initializer for member ‘addrinfo::ai_next’ [-Wmissing-field-initializers]
Compiling juce_cryptography.cpp
Compiling juce_data_structures.cpp
Compiling juce_events.cpp
In file included from ../../JuceLibraryCode/modules/juce_events/juce_events.cpp:98:0:
../../JuceLibraryCode/modules/juce_events/native/juce_linux_Messaging.cpp:227:9: warning: unused parameter ‘display’ [-Wunused-parameter]
../../JuceLibraryCode/modules/juce_events/native/juce_linux_Messaging.cpp:367:6: warning: unused parameter ‘value’ [-Wunused-parameter]
Compiling juce_graphics.cpp
In file included from ../../JuceLibraryCode/modules/juce_graphics/image_formats/juce_PNGLoader.cpp:72:0,
                 from ../../JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp:101:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/png.c: In function ‘void juce::pnglibNamespace::png_data_freer(juce::pnglibNamespace::png_structp, juce::pnglibNamespace::png_infop, int, juce::pnglibNamespace::png_uint_32)’:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/png.c:334:55: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body]
In file included from ../../JuceLibraryCode/modules/juce_graphics/image_formats/juce_PNGLoader.cpp:76:0,
                 from ../../JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp:101:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngread.c: In function ‘void juce::pnglibNamespace::png_read_update_info(juce::pnglibNamespace::png_structp, juce::pnglibNamespace::png_infop)’:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngread.c:543:80: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body]
In file included from ../../JuceLibraryCode/modules/juce_graphics/image_formats/juce_PNGLoader.cpp:77:0,
                 from ../../JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp:101:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngpread.c: In function ‘void juce::pnglibNamespace::png_push_read_tEXt(juce::pnglibNamespace::png_structp, juce::pnglibNamespace::png_infop)’:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngpread.c:1146:73: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngpread.c: In function ‘void juce::pnglibNamespace::png_push_read_zTXt(juce::pnglibNamespace::png_structp, juce::pnglibNamespace::png_infop)’:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngpread.c:1338:73: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
In file included from ../../JuceLibraryCode/modules/juce_graphics/image_formats/juce_PNGLoader.cpp:79:0,
                 from ../../JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp:101:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrtran.c: In function ‘void juce::pnglibNamespace::png_do_read_transformations(juce::pnglibNamespace::png_structp)’:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrtran.c:1325:75: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
In file included from ../../JuceLibraryCode/modules/juce_graphics/image_formats/juce_PNGLoader.cpp:80:0,
                 from ../../JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp:101:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c: In function ‘char* juce::pnglibNamespace::png_decompress_chunk(juce::pnglibNamespace::png_structp, int, juce::pnglibNamespace::png_charp, juce::pnglibNamespace::png_size_t, juce::pnglibNamespace::png_size_t, juce::pnglibNamespace::png_size_t*)’:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c:211:41: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body]
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c: In function ‘void juce::pnglibNamespace::png_handle_gAMA(juce::pnglibNamespace::png_structp, juce::pnglibNamespace::png_infop, juce::pnglibNamespace::png_uint_32)’:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c:599:54: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c: In function ‘void juce::pnglibNamespace::png_handle_cHRM(juce::pnglibNamespace::png_structp, juce::pnglibNamespace::png_infop, juce::pnglibNamespace::png_uint_32)’:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c:749:55: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c: In function ‘void juce::pnglibNamespace::png_handle_sRGB(juce::pnglibNamespace::png_structp, juce::pnglibNamespace::png_infop, juce::pnglibNamespace::png_uint_32)’:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c:907:54: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c: In function ‘void juce::pnglibNamespace::png_handle_tEXt(juce::pnglibNamespace::png_structp, juce::pnglibNamespace::png_infop, juce::pnglibNamespace::png_uint_32)’:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c:1954:72: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c: In function ‘void juce::pnglibNamespace::png_read_finish_row(juce::pnglibNamespace::png_structp)’:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c:2947:61: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngrutil.c:2969:53: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
In file included from ../../JuceLibraryCode/modules/juce_graphics/image_formats/juce_PNGLoader.cpp:81:0,
                 from ../../JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp:101:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngset.c: In function ‘void juce::pnglibNamespace::png_set_gAMA(juce::pnglibNamespace::png_structp, juce::pnglibNamespace::png_infop, double)’:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngset.c:176:46: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngset.c: In function ‘void juce::pnglibNamespace::png_set_gAMA_fixed(juce::pnglibNamespace::png_structp, juce::pnglibNamespace::png_infop, juce::pnglibNamespace::png_fixed_point)’:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngset.c:212:46: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngset.c: In function ‘void juce::pnglibNamespace::png_set_IHDR(juce::pnglibNamespace::png_structp, juce::pnglibNamespace::png_infop, juce::pnglibNamespace::png_uint_32, juce::pnglibNamespace::png_uint_32, int, int, int, int, int)’:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngset.c:287:78: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngset.c:321:78: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngset.c:331:62: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
In file included from ../../JuceLibraryCode/modules/juce_graphics/image_formats/juce_PNGLoader.cpp:84:0,
                 from ../../JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp:101:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwrite.c: In function ‘void juce::pnglibNamespace::png_set_compression_window_bits(juce::pnglibNamespace::png_structp, int)’:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwrite.c:1383:79: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwrite.c: In function ‘void juce::pnglibNamespace::png_set_compression_method(juce::pnglibNamespace::png_structp, int)’:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwrite.c:1403:76: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
In file included from ../../JuceLibraryCode/modules/juce_graphics/image_formats/juce_PNGLoader.cpp:86:0,
                 from ../../JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp:101:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c: In function ‘void juce::pnglibNamespace::png_write_sRGB(juce::pnglibNamespace::png_structp, int)’:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c:719:55: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c: In function ‘void juce::pnglibNamespace::png_write_iCCP(juce::pnglibNamespace::png_structp, juce::pnglibNamespace::png_charp, int, juce::pnglibNamespace::png_charp, int)’:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c:755:69: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c: In function ‘juce::pnglibNamespace::png_size_t juce::pnglibNamespace::png_check_keyword(juce::pnglibNamespace::png_structp, juce::pnglibNamespace::png_charp, juce::pnglibNamespace::png_charpp)’:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c:1304:73: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c: In function ‘void juce::pnglibNamespace::png_write_oFFs(juce::pnglibNamespace::png_structp, juce::pnglibNamespace::png_int_32, juce::pnglibNamespace::png_int_32, int)’:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c:1526:68: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c: In function ‘void juce::pnglibNamespace::png_write_pCAL(juce::pnglibNamespace::png_structp, juce::pnglibNamespace::png_charp, juce::pnglibNamespace::png_int_32, juce::pnglibNamespace::png_int_32, int, int, juce::pnglibNamespace::png_charp, juce::pnglibNamespace::png_charpp)’:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c:1552:72: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c: In function ‘void juce::pnglibNamespace::png_write_pHYs(juce::pnglibNamespace::png_structp, juce::pnglibNamespace::png_uint_32, juce::pnglibNamespace::png_uint_32, int)’:
../../JuceLibraryCode/modules/juce_graphics/image_formats/pnglib/pngwutil.c:1683:68: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
Compiling juce_gui_basics.cpp
In file included from ../../JuceLibraryCode/modules/juce_gui_basics/juce_gui_basics.cpp:161:0:
../../JuceLibraryCode/modules/juce_gui_basics/drawables/juce_Drawable.cpp: In copy constructor ‘juce::Drawable::Drawable(const juce::Drawable&)’:
../../JuceLibraryCode/modules/juce_gui_basics/drawables/juce_Drawable.cpp:32:1: warning: base class ‘class juce::Component’ should be explicitly initialized in the copy constructor [-Wextra]
In file included from ../../JuceLibraryCode/modules/juce_gui_basics/juce_gui_basics.cpp:241:0:
../../JuceLibraryCode/modules/juce_gui_basics/commands/juce_KeyPressMappingSet.cpp: In copy constructor ‘juce::KeyPressMappingSet::KeyPressMappingSet(const juce::KeyPressMappingSet&)’:
../../JuceLibraryCode/modules/juce_gui_basics/commands/juce_KeyPressMappingSet.cpp:32:1: warning: base class ‘class juce::ChangeBroadcaster’ should be explicitly initialized in the copy constructor [-Wextra]
In file included from ../../JuceLibraryCode/modules/juce_gui_basics/juce_gui_basics.cpp:283:0:
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Clipboard.cpp: At global scope:
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Clipboard.cpp:51:19: warning: unused parameter ‘fmt’ [-Wunused-parameter]
In file included from ../../JuceLibraryCode/modules/juce_gui_basics/juce_gui_basics.cpp:284:0:
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp: In function ‘bool juce::XSHMHelpers::isShmAvailable()’:
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:225:51: warning: missing initializer for member ‘XShmSegmentInfo::shmid’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:225:51: warning: missing initializer for member ‘XShmSegmentInfo::shmaddr’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:225:51: warning: missing initializer for member ‘XShmSegmentInfo::readOnly’ [-Wmissing-field-initializers]
In file included from ../../JuceLibraryCode/modules/juce_gui_basics/juce_gui_basics.cpp:284:0:
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp: At global scope:
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:966:10: warning: unused parameter ‘newAlpha’ [-Wunused-parameter]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:1112:10: warning: unused parameter ‘alwaysOnTop’ [-Wunused-parameter]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp: In member function ‘void juce::LinuxComponentPeer::removeWindowDecorations(Window)’:
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2060:43: warning: missing initializer for member ‘juce::LinuxComponentPeer::MotifWmHints::functions’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2060:43: warning: missing initializer for member ‘juce::LinuxComponentPeer::MotifWmHints::decorations’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2060:43: warning: missing initializer for member ‘juce::LinuxComponentPeer::MotifWmHints::input_mode’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2060:43: warning: missing initializer for member ‘juce::LinuxComponentPeer::MotifWmHints::status’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp: In member function ‘void juce::LinuxComponentPeer::addWindowButtons(Window)’:
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2096:43: warning: missing initializer for member ‘juce::LinuxComponentPeer::MotifWmHints::functions’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2096:43: warning: missing initializer for member ‘juce::LinuxComponentPeer::MotifWmHints::decorations’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2096:43: warning: missing initializer for member ‘juce::LinuxComponentPeer::MotifWmHints::input_mode’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2096:43: warning: missing initializer for member ‘juce::LinuxComponentPeer::MotifWmHints::status’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp: In member function ‘void juce::LinuxComponentPeer::sendExternalDragAndDropDrop(Window)’:
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2434:39: warning: missing initializer for member ‘XClientMessageEvent::serial’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2434:39: warning: missing initializer for member ‘XClientMessageEvent::send_event’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2434:39: warning: missing initializer for member ‘XClientMessageEvent::display’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2434:39: warning: missing initializer for member ‘XClientMessageEvent::window’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2434:39: warning: missing initializer for member ‘XClientMessageEvent::message_type’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2434:39: warning: missing initializer for member ‘XClientMessageEvent::format’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2434:39: warning: missing initializer for member ‘XClientMessageEvent::data’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp: In member function ‘void juce::LinuxComponentPeer::sendExternalDragAndDropEnter(Window)’:
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2443:39: warning: missing initializer for member ‘XClientMessageEvent::serial’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2443:39: warning: missing initializer for member ‘XClientMessageEvent::send_event’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2443:39: warning: missing initializer for member ‘XClientMessageEvent::display’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2443:39: warning: missing initializer for member ‘XClientMessageEvent::window’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2443:39: warning: missing initializer for member ‘XClientMessageEvent::message_type’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2443:39: warning: missing initializer for member ‘XClientMessageEvent::format’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2443:39: warning: missing initializer for member ‘XClientMessageEvent::data’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp: In member function ‘void juce::LinuxComponentPeer::sendExternalDragAndDropPosition(Window)’:
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2459:39: warning: missing initializer for member ‘XClientMessageEvent::serial’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2459:39: warning: missing initializer for member ‘XClientMessageEvent::send_event’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2459:39: warning: missing initializer for member ‘XClientMessageEvent::display’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2459:39: warning: missing initializer for member ‘XClientMessageEvent::window’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2459:39: warning: missing initializer for member ‘XClientMessageEvent::message_type’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2459:39: warning: missing initializer for member ‘XClientMessageEvent::format’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2459:39: warning: missing initializer for member ‘XClientMessageEvent::data’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp: In member function ‘void juce::LinuxComponentPeer::sendDragAndDropStatus(bool, Atom)’:
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2477:39: warning: missing initializer for member ‘XClientMessageEvent::serial’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2477:39: warning: missing initializer for member ‘XClientMessageEvent::send_event’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2477:39: warning: missing initializer for member ‘XClientMessageEvent::display’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2477:39: warning: missing initializer for member ‘XClientMessageEvent::window’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2477:39: warning: missing initializer for member ‘XClientMessageEvent::message_type’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2477:39: warning: missing initializer for member ‘XClientMessageEvent::format’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2477:39: warning: missing initializer for member ‘XClientMessageEvent::data’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp: In member function ‘void juce::LinuxComponentPeer::sendExternalDragAndDropLeave(Window)’:
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2487:39: warning: missing initializer for member ‘XClientMessageEvent::serial’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2487:39: warning: missing initializer for member ‘XClientMessageEvent::send_event’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2487:39: warning: missing initializer for member ‘XClientMessageEvent::display’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2487:39: warning: missing initializer for member ‘XClientMessageEvent::window’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2487:39: warning: missing initializer for member ‘XClientMessageEvent::message_type’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2487:39: warning: missing initializer for member ‘XClientMessageEvent::format’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2487:39: warning: missing initializer for member ‘XClientMessageEvent::data’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp: In member function ‘void juce::LinuxComponentPeer::sendDragAndDropFinish()’:
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2494:39: warning: missing initializer for member ‘XClientMessageEvent::serial’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2494:39: warning: missing initializer for member ‘XClientMessageEvent::send_event’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2494:39: warning: missing initializer for member ‘XClientMessageEvent::display’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2494:39: warning: missing initializer for member ‘XClientMessageEvent::window’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2494:39: warning: missing initializer for member ‘XClientMessageEvent::message_type’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2494:39: warning: missing initializer for member ‘XClientMessageEvent::format’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2494:39: warning: missing initializer for member ‘XClientMessageEvent::data’ [-Wmissing-field-initializers]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp: At global scope:
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2554:10: warning: unused parameter ‘buttonRelEvent’ [-Wunused-parameter]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:2955:6: warning: unused parameter ‘allowMenusAndBars’ [-Wunused-parameter]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:3337:7: warning: unused parameter ‘file’ [-Wunused-parameter]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:3381:20: warning: unused parameter ‘iconType’ [-Wunused-parameter]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:3381:20: warning: unused parameter ‘associatedComponent’ [-Wunused-parameter]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:3388:20: warning: unused parameter ‘iconType’ [-Wunused-parameter]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp:3388:20: warning: unused parameter ‘associatedComponent’ [-Wunused-parameter]
In file included from ../../JuceLibraryCode/modules/juce_gui_basics/juce_gui_basics.cpp:285:0:
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_FileChooser.cpp:41:6: warning: unused parameter ‘filters’ [-Wunused-parameter]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_FileChooser.cpp:41:6: warning: unused parameter ‘selectsFiles’ [-Wunused-parameter]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_FileChooser.cpp:41:6: warning: unused parameter ‘warnAboutOverwritingExistingFiles’ [-Wunused-parameter]
../../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_FileChooser.cpp:41:6: warning: unused parameter ‘previewComponent’ [-Wunused-parameter]
Compiling juce_gui_extra.cpp
In file included from ../../JuceLibraryCode/modules/juce_gui_extra/juce_gui_extra.cpp:139:0:
../../JuceLibraryCode/modules/juce_gui_extra/native/juce_linux_SystemTrayIcon.cpp:121:6: warning: unused parameter ‘tooltip’ [-Wunused-parameter]
Compiling juce_opengl.cpp
Compiling juce_video.cpp

#8

Apparently, the ={0} causing warnings about missing initializers is relaxed from 4.7 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36750 and http://gcc.gnu.org/viewcvs/tags/gcc_4_7_0_release/gcc/c-typeck.c?view=co so maybe never mind them since they are valid C90/99.

The other warnings would be nice to have fixed though, if possible!


#9

Jules,

I’ve gone through all the warnings now. Should have done that myself in the first place, forgive me for being lazy.

Attached are two files. A zipfile with all the modified files from latest git tip. And a git diff.
Please try the diff first - I know you had troubles applying my diffs before, but I’ve made some local changes that hopefully fixes that. At least I can apply my own JUCE patches now, which wasn’t the case before…

With these changes applied, I get clean compiles with -Wall -Wno-missing-field-initializers

There are two warnings that I didn’t touch, if you could please decide on how/if you would like to explicitly call the copy constructor in these two cases:

../../JuceLibraryCode/modules/juce_gui_basics/drawables/juce_Drawable.cpp: In copy constructor ‘juce::Drawable::Drawable(const juce::Drawable&)’: In file included from ../../JuceLibraryCode/modules/juce_gui_basics/juce_gui_basics.cpp:161:0: ../../JuceLibraryCode/modules/juce_gui_basics/drawables/juce_Drawable.cpp:32:1: warning: base class ‘class juce::Component’ should be explicitly initialized in the copy constructor ../../JuceLibraryCode/modules/juce_gui_basics/commands/juce_KeyPressMappingSet.cpp: In copy constructor ‘juce::KeyPressMappingSet::KeyPressMappingSet(const juce::KeyPressMappingSet&)’: In file included from ../../JuceLibraryCode/modules/juce_gui_basics/juce_gui_basics.cpp:241:0: ../../JuceLibraryCode/modules/juce_gui_basics/commands/juce_KeyPressMappingSet.cpp:32:1: warning: base class ‘class juce::ChangeBroadcaster’ should be explicitly initialized in the copy constructor


#10

Ah, found one more. Please see attached files.

/Johan


#11

Thanks. Although I should really be doing more important things than messing about with a few obscure warnings, I have a hangover this morning, so this is exactly the sort of easy task that I can occupy my brain with…