Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1021 from tst-twilk/1011-warning-fix
Browse files Browse the repository at this point in the history
#1011 Remove unused variable warning
  • Loading branch information
tst-twilk committed Sep 26, 2018
2 parents 88fcca0 + a1173a5 commit 5c2517b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions earth_enterprise/src/fusion/gst/maprender/SGLHelps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
#include "fusion/autoingest/.idl/storage/MapSubLayerConfig.h"


__SK_FORCE_IMAGE_DECODER_LINKING;


SkColor SkColorFromQColor(const QColor &color) {
QRgb rgb = color.rgb();
return SkColorSetARGB(qAlpha(rgb), qRed(rgb), qGreen(rgb), qBlue(rgb));
Expand Down Expand Up @@ -156,3 +153,7 @@ bool FontInfo::CheckTextStyleSanity(MapTextStyleConfig* config,

} // namespace maprender

// Always leave these two lines last, otherwise it will
// silence unused variables from the code below.
#pragma GCC diagnostic ignored "-Wunused-variable"
__SK_FORCE_IMAGE_DECODER_LINKING;

0 comments on commit 5c2517b

Please sign in to comment.