# Minor warnings on gcc 4.8

**URL:** <https://forum.juce.com/t/minor-warnings-on-gcc-4-8/14841>\
**Category:** General JUCE discussion\
**Created:** [May 25, 2015, 8:39am UTC](https://forum.juce.com/t/minor-warnings-on-gcc-4-8/14841 "2015-05-25T08:39:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kunitoki](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/kunitoki/32/15_2.png) [@kunitoki](https://forum.juce.com/u/kunitoki)\
**Post date:** [May 25, 2015, 8:39am UTC](https://forum.juce.com/t/minor-warnings-on-gcc-4-8/14841/1 "2015-05-25T08:39:11Z")

</div>

```
Compiling juce_gui_extra.cpp
In file included from ../../../../modules/juce_gui_basics/../juce_graphics/../juce_core/juce_core.h:163:0,
                 from ../../../../modules/juce_gui_basics/../juce_graphics/juce_graphics.h:28,
                 from ../../../../modules/juce_gui_basics/juce_gui_basics.h:28,
                 from ../../../../modules/juce_gui_basics/juce_gui_basics.cpp:41:
../../../../modules/juce_gui_basics/../juce_graphics/../juce_core/memory/juce_Memory.h: In instantiation of ‘Type* juce::createCopyIfNotNull(const Type*) [with Type = juce::PopupMenu]’:
../../../../modules/juce_gui_basics/menus/juce_PopupMenu.cpp:58:63:   required from here
../../../../modules/juce_gui_basics/../juce_graphics/../juce_core/memory/juce_Memory.h:65:14: warning: declaration of ‘pointer’ shadows a global declaration [-Wshadow]
 inline Type* createCopyIfNotNull (const Type* pointer)     { return pointer != nullptr ? new Type (*pointer) : nullptr; }
              ^
../../../../modules/juce_gui_basics/../juce_graphics/../juce_core/memory/juce_Memory.h: In instantiation of ‘Type* juce::createCopyIfNotNull(const Type*) [with Type = juce::PopupMenu::Item]’:
../../../../modules/juce_gui_basics/../juce_graphics/../juce_core/containers/juce_OwnedArray.h:508:104:   required from ‘void juce::OwnedArray<ObjectClass, TypeOfCriticalSectionToUse>::addCopiesOf(const OtherArrayType&, int, int) [with OtherArrayType = juce::OwnedArray<juce::PopupMenu::Item>; ObjectClass = juce::PopupMenu::Item; TypeOfCriticalSectionToUse = juce::DummyCriticalSection]’
../../../../modules/juce_gui_basics/menus/juce_PopupMenu.cpp:1244:35:   required from here
../../../../modules/juce_gui_basics/../juce_graphics/../juce_core/memory/juce_Memory.h:65:14: warning: declaration of ‘pointer’ shadows a global declaration [-Wshadow]
../../../../modules/juce_gui_basics/../juce_graphics/../juce_core/memory/juce_Memory.h: In instantiation of ‘Type* juce::createCopyIfNotNull(const Type*) [with Type = juce::MarkerList::Marker]’:
../../../../modules/juce_gui_basics/../juce_graphics/../juce_core/containers/juce_OwnedArray.h:508:104:   required from ‘void juce::OwnedArray<ObjectClass, TypeOfCriticalSectionToUse>::addCopiesOf(const OtherArrayType&, int, int) [with OtherArrayType = juce::OwnedArray<juce::MarkerList::Marker>; ObjectClass = juce::MarkerList::Marker; TypeOfCriticalSectionToUse = juce::DummyCriticalSection]’
../../../../modules/juce_gui_basics/positioning/juce_MarkerList.cpp:39:43:   required from here
../../../../modules/juce_gui_basics/../juce_graphics/../juce_core/memory/juce_Memory.h:65:14: warning: declaration of ‘pointer’ shadows a global declaration [-Wshadow]
../../../../modules/juce_gui_basics/../juce_graphics/../juce_core/memory/juce_Memory.h: In instantiation of ‘Type* juce::createCopyIfNotNull(const Type*) [with Type = juce::TextAtom]’:
../../../../modules/juce_gui_basics/../juce_graphics/../juce_core/containers/juce_OwnedArray.h:508:104:   required from ‘void juce::OwnedArray<ObjectClass, TypeOfCriticalSectionToUse>::addCopiesOf(const OtherArrayType&, int, int) [with OtherArrayType = juce::OwnedArray<juce::TextAtom>; ObjectClass = juce::TextAtom; TypeOfCriticalSectionToUse = juce::DummyCriticalSection]’
../../../../modules/juce_gui_basics/widgets/juce_TextEditor.cpp:74:39:   required from here
../../../../modules/juce_gui_basics/../juce_graphics/../juce_core/memory/juce_Memory.h:65:14: warning: declaration of ‘pointer’ shadows a global declaration [-Wshadow]
In file included from ../../../../modules/juce_gui_basics/../juce_graphics/../juce_core/juce_core.h:163:0,
                 from ../../../../modules/juce_gui_basics/../juce_graphics/juce_graphics.h:28,
                 from ../../../../modules/juce_gui_basics/juce_gui_basics.h:28,
                 from ../../../../modules/juce_gui_basics/juce_gui_basics.cpp:41:
../../../../modules/juce_gui_basics/../juce_graphics/../juce_core/memory/juce_Memory.h: In instantiation of ‘Type* juce::addBytesToPointer(Type*, IntegerType) [with Type = juce::PixelARGB; IntegerType = int]’:
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:761:13:   required from ‘void juce::RenderingHelpers::EdgeTableFillers::Gradient<PixelType, GradientType>::handleEdgeTableLineFull(int, int) const [with PixelType = juce::PixelARGB; GradientType = juce::RenderingHelpers::GradientPixelIterators::Radial]’
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:1859:21:   required from ‘void juce::RenderingHelpers::ClipRegions<SavedStateType>::RectangleListRegion::iterate(Renderer&) const [with Renderer = juce::RenderingHelpers::EdgeTableFillers::Gradient<juce::PixelARGB, juce::RenderingHelpers::GradientPixelIterators::Radial>; SavedStateType = juce::RenderingHelpers::SoftwareRendererSavedState]’
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:1531:17:   required from ‘void juce::RenderingHelpers::EdgeTableFillers::renderGradient(Iterator&, const juce::Image::BitmapData&, const juce::ColourGradient&, const juce::AffineTransform&, const juce::PixelARGB*, int, bool, DestPixelType*) [with Iterator = const juce::RenderingHelpers::ClipRegions<juce::RenderingHelpers::SoftwareRendererSavedState>::RectangleListRegion; DestPixelType = juce::PixelARGB]’
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:2565:157:   required from ‘void juce::RenderingHelpers::SoftwareRendererSavedState::fillWithGradient(IteratorType&, juce::ColourGradient&, const juce::AffineTransform&, bool) const [with IteratorType = const juce::RenderingHelpers::ClipRegions<juce::RenderingHelpers::SoftwareRendererSavedState>::RectangleListRegion]’
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:1830:13:   required from ‘void juce::RenderingHelpers::ClipRegions<SavedStateType>::RectangleListRegion::fillAllWithGradient(SavedStateType&, juce::ColourGradient&, const juce::AffineTransform&, bool) const [with SavedStateType = juce::RenderingHelpers::SoftwareRendererSavedState]’
../../../../modules/juce_gui_basics/juce_gui_basics.cpp:302:1:   required from here
../../../../modules/juce_gui_basics/../juce_graphics/../juce_core/memory/juce_Memory.h:53:14: warning: declaration of ‘pointer’ shadows a global declaration [-Wshadow]
 inline Type* addBytesToPointer (Type* pointer, IntegerType bytes) noexcept  { return (Type*) (((char*) pointer) + bytes); }
              ^
../../../../modules/juce_gui_basics/../juce_graphics/../juce_core/memory/juce_Memory.h: In instantiation of ‘Type* juce::addBytesToPointer(Type*, IntegerType) [with Type = juce::PixelRGB; IntegerType = int]’:
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:761:13:   required from ‘void juce::RenderingHelpers::EdgeTableFillers::Gradient<PixelType, GradientType>::handleEdgeTableLineFull(int, int) const [with PixelType = juce::PixelRGB; GradientType = juce::RenderingHelpers::GradientPixelIterators::Radial]’
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:1859:21:   required from ‘void juce::RenderingHelpers::ClipRegions<SavedStateType>::RectangleListRegion::iterate(Renderer&) const [with Renderer = juce::RenderingHelpers::EdgeTableFillers::Gradient<juce::PixelRGB, juce::RenderingHelpers::GradientPixelIterators::Radial>; SavedStateType = juce::RenderingHelpers::SoftwareRendererSavedState]’
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:1531:17:   required from ‘void juce::RenderingHelpers::EdgeTableFillers::renderGradient(Iterator&, const juce::Image::BitmapData&, const juce::ColourGradient&, const juce::AffineTransform&, const juce::PixelARGB*, int, bool, DestPixelType*) [with Iterator = const juce::RenderingHelpers::ClipRegions<juce::RenderingHelpers::SoftwareRendererSavedState>::RectangleListRegion; DestPixelType = juce::PixelRGB]’
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:2566:156:   required from ‘void juce::RenderingHelpers::SoftwareRendererSavedState::fillWithGradient(IteratorType&, juce::ColourGradient&, const juce::AffineTransform&, bool) const [with IteratorType = const juce::RenderingHelpers::ClipRegions<juce::RenderingHelpers::SoftwareRendererSavedState>::RectangleListRegion]’
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:1830:13:   required from ‘void juce::RenderingHelpers::ClipRegions<SavedStateType>::RectangleListRegion::fillAllWithGradient(SavedStateType&, juce::ColourGradient&, const juce::AffineTransform&, bool) const [with SavedStateType = juce::RenderingHelpers::SoftwareRendererSavedState]’
../../../../modules/juce_gui_basics/juce_gui_basics.cpp:302:1:   required from here
../../../../modules/juce_gui_basics/../juce_graphics/../juce_core/memory/juce_Memory.h:53:14: warning: declaration of ‘pointer’ shadows a global declaration [-Wshadow]
../../../../modules/juce_gui_basics/../juce_graphics/../juce_core/memory/juce_Memory.h: In instantiation of ‘Type* juce::addBytesToPointer(Type*, IntegerType) [with Type = juce::PixelAlpha; IntegerType = int]’:
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:761:13:   required from ‘void juce::RenderingHelpers::EdgeTableFillers::Gradient<PixelType, GradientType>::handleEdgeTableLineFull(int, int) const [with PixelType = juce::PixelAlpha; GradientType = juce::RenderingHelpers::GradientPixelIterators::Radial]’
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:1859:21:   required from ‘void juce::RenderingHelpers::ClipRegions<SavedStateType>::RectangleListRegion::iterate(Renderer&) const [with Renderer = juce::RenderingHelpers::EdgeTableFillers::Gradient<juce::PixelAlpha, juce::RenderingHelpers::GradientPixelIterators::Radial>; SavedStateType = juce::RenderingHelpers::SoftwareRendererSavedState]’
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:1531:17:   required from ‘void juce::RenderingHelpers::EdgeTableFillers::renderGradient(Iterator&, const juce::Image::BitmapData&, const juce::ColourGradient&, const juce::AffineTransform&, const juce::PixelARGB*, int, bool, DestPixelType*) [with Iterator = const juce::RenderingHelpers::ClipRegions<juce::RenderingHelpers::SoftwareRendererSavedState>::RectangleListRegion; DestPixelType = juce::PixelAlpha]’
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:2567:158:   required from ‘void juce::RenderingHelpers::SoftwareRendererSavedState::fillWithGradient(IteratorType&, juce::ColourGradient&, const juce::AffineTransform&, bool) const [with IteratorType = const juce::RenderingHelpers::ClipRegions<juce::RenderingHelpers::SoftwareRendererSavedState>::RectangleListRegion]’
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:1830:13:   required from ‘void juce::RenderingHelpers::ClipRegions<SavedStateType>::RectangleListRegion::fillAllWithGradient(SavedStateType&, juce::ColourGradient&, const juce::AffineTransform&, bool) const [with SavedStateType = juce::RenderingHelpers::SoftwareRendererSavedState]’
../../../../modules/juce_gui_basics/juce_gui_basics.cpp:302:1:   required from here
../../../../modules/juce_gui_basics/../juce_graphics/../juce_core/memory/juce_Memory.h:53:14: warning: declaration of ‘pointer’ shadows a global declaration [-Wshadow]
../../../../modules/juce_gui_basics/../juce_graphics/../juce_core/memory/juce_Memory.h: In instantiation of ‘Type* juce::addBytesToPointer(Type*, IntegerType) [with Type = const juce::PixelARGB; IntegerType = int]’:
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:911:61:   required from ‘void juce::RenderingHelpers::EdgeTableFillers::ImageFill<DestPixelType, SrcPixelType, repeatPattern>::copyRow(DestPixelType*, const SrcPixelType*, int) const [with DestPixelType = juce::PixelARGB; SrcPixelType = juce::PixelARGB; bool repeatPattern = true]’
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:861:58:   required from ‘void juce::RenderingHelpers::EdgeTableFillers::ImageFill<DestPixelType, SrcPixelType, repeatPattern>::handleEdgeTableLineFull(int, int) const [with DestPixelType = juce::PixelARGB; SrcPixelType = juce::PixelARGB; bool repeatPattern = true]’
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:1859:21:   required from ‘void juce::RenderingHelpers::ClipRegions<SavedStateType>::RectangleListRegion::iterate(Renderer&) const [with Renderer = juce::RenderingHelpers::EdgeTableFillers::ImageFill<juce::PixelARGB, juce::PixelARGB, true>; SavedStateType = juce::RenderingHelpers::SoftwareRendererSavedState]’
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:1455:110:   required from ‘void juce::RenderingHelpers::EdgeTableFillers::renderImageUntransformed(Iterator&, const juce::Image::BitmapData&, const juce::Image::BitmapData&, int, int, int, bool) [with Iterator = const juce::RenderingHelpers::ClipRegions<juce::RenderingHelpers::SoftwareRendererSavedState>::RectangleListRegion]’
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:2538:100:   required from ‘void juce::RenderingHelpers::SoftwareRendererSavedState::renderImageUntransformed(IteratorType&, const juce::Image&, int, int, int, bool) const [with IteratorType = const juce::RenderingHelpers::ClipRegions<juce::RenderingHelpers::SoftwareRendererSavedState>::RectangleListRegion]’
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:1840:13:   required from ‘void juce::RenderingHelpers::ClipRegions<SavedStateType>::RectangleListRegion::renderImageUntransformed(SavedStateType&, const juce::Image&, int, int, int, bool) const [with SavedStateType = juce::RenderingHelpers::SoftwareRendererSavedState]’
../../../../modules/juce_gui_basics/juce_gui_basics.cpp:302:1:   required from here
../../../../modules/juce_gui_basics/../juce_graphics/../juce_core/memory/juce_Memory.h:53:14: warning: declaration of ‘pointer’ shadows a global declaration [-Wshadow]
../../../../modules/juce_gui_basics/../juce_graphics/../juce_core/memory/juce_Memory.h: In instantiation of ‘Type* juce::addBytesToPointer(Type*, IntegerType) [with Type = const juce::PixelRGB; IntegerType = int]’:
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:911:61:   required from ‘void juce::RenderingHelpers::EdgeTableFillers::ImageFill<DestPixelType, SrcPixelType, repeatPattern>::copyRow(DestPixelType*, const SrcPixelType*, int) const [with DestPixelType = juce::PixelARGB; SrcPixelType = juce::PixelRGB; bool repeatPattern = true]’
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:861:58:   required from ‘void juce::RenderingHelpers::EdgeTableFillers::ImageFill<DestPixelType, SrcPixelType, repeatPattern>::handleEdgeTableLineFull(int, int) const [with DestPixelType = juce::PixelARGB; SrcPixelType = juce::PixelRGB; bool repeatPattern = true]’
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:1859:21:   required from ‘void juce::RenderingHelpers::ClipRegions<SavedStateType>::RectangleListRegion::iterate(Renderer&) const [with Renderer = juce::RenderingHelpers::EdgeTableFillers::ImageFill<juce::PixelARGB, juce::PixelRGB, true>; SavedStateType = juce::RenderingHelpers::SoftwareRendererSavedState]’
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:1459:109:   required from ‘void juce::RenderingHelpers::EdgeTableFillers::renderImageUntransformed(Iterator&, const juce::Image::BitmapData&, const juce::Image::BitmapData&, int, int, int, bool) [with Iterator = const juce::RenderingHelpers::ClipRegions<juce::RenderingHelpers::SoftwareRendererSavedState>::RectangleListRegion]’
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:2538:100:   required from ‘void juce::RenderingHelpers::SoftwareRendererSavedState::renderImageUntransformed(IteratorType&, const juce::Image&, int, int, int, bool) const [with IteratorType = const juce::RenderingHelpers::ClipRegions<juce::RenderingHelpers::SoftwareRendererSavedState>::RectangleListRegion]’
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:1840:13:   required from ‘void juce::RenderingHelpers::ClipRegions<SavedStateType>::RectangleListRegion::renderImageUntransformed(SavedStateType&, const juce::Image&, int, int, int, bool) const [with SavedStateType = juce::RenderingHelpers::SoftwareRendererSavedState]’
../../../../modules/juce_gui_basics/juce_gui_basics.cpp:302:1:   required from here
../../../../modules/juce_gui_basics/../juce_graphics/../juce_core/memory/juce_Memory.h:53:14: warning: declaration of ‘pointer’ shadows a global declaration [-Wshadow]
../../../../modules/juce_gui_basics/../juce_graphics/../juce_core/memory/juce_Memory.h: In instantiation of ‘Type* juce::addBytesToPointer(Type*, IntegerType) [with Type = const juce::PixelAlpha; IntegerType = int]’:
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:911:61:   required from ‘void juce::RenderingHelpers::EdgeTableFillers::ImageFill<DestPixelType, SrcPixelType, repeatPattern>::copyRow(DestPixelType*, const SrcPixelType*, int) const [with DestPixelType = juce::PixelARGB; SrcPixelType = juce::PixelAlpha; bool repeatPattern = true]’
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:861:58:   required from ‘void juce::RenderingHelpers::EdgeTableFillers::ImageFill<DestPixelType, SrcPixelType, repeatPattern>::handleEdgeTableLineFull(int, int) const [with DestPixelType = juce::PixelARGB; SrcPixelType = juce::PixelAlpha; bool repeatPattern = true]’
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:1859:21:   required from ‘void juce::RenderingHelpers::ClipRegions<SavedStateType>::RectangleListRegion::iterate(Renderer&) const [with Renderer = juce::RenderingHelpers::EdgeTableFillers::ImageFill<juce::PixelARGB, juce::PixelAlpha, true>; SavedStateType = juce::RenderingHelpers::SoftwareRendererSavedState]’
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:1463:111:   required from ‘void juce::RenderingHelpers::EdgeTableFillers::renderImageUntransformed(Iterator&, const juce::Image::BitmapData&, const juce::Image::BitmapData&, int, int, int, bool) [with Iterator = const juce::RenderingHelpers::ClipRegions<juce::RenderingHelpers::SoftwareRendererSavedState>::RectangleListRegion]’
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:2538:100:   required from ‘void juce::RenderingHelpers::SoftwareRendererSavedState::renderImageUntransformed(IteratorType&, const juce::Image&, int, int, int, bool) const [with IteratorType = const juce::RenderingHelpers::ClipRegions<juce::RenderingHelpers::SoftwareRendererSavedState>::RectangleListRegion]’
../../../../modules/juce_gui_basics/../juce_graphics/native/juce_RenderingHelpers.h:1840:13:   required from ‘void juce::RenderingHelpers::ClipRegions<SavedStateType>::RectangleListRegion::renderImageUntransformed(SavedStateType&, const juce::Image&, int, int, int, bool) const [with SavedStateType = juce::RenderingHelpers::SoftwareRendererSavedState]’
../../../../modules/juce_gui_basics/juce_gui_basics.cpp:302:1:   required from here
../../../../modules/juce_gui_basics/../juce_graphics/../juce_core/memory/juce_Memory.h:53:14: warning: declaration of ‘pointer’ shadows a global declaration [-Wshadow]
Linking The Introjucer
```

just reporting them, as you don't accept pull requests...&nbsp;

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 25, 2015, 9:19am UTC](https://forum.juce.com/t/minor-warnings-on-gcc-4-8/14841/2 "2015-05-25T09:19:51Z")

</div>

Cheers - we'll tidy those up!
