summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/gfx/favicon_size.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/common/gfx/favicon_size.h b/chrome/common/gfx/favicon_size.h
index bc5c12a..0b3b264 100644
--- a/chrome/common/gfx/favicon_size.h
+++ b/chrome/common/gfx/favicon_size.h
@@ -5,9 +5,15 @@
#ifndef CHROME_COMMON_GFX_FAVICON_SIZE_H__
#define CHROME_COMMON_GFX_FAVICON_SIZE_H__
+#include "build/build_config.h"
+
// Size (along each axis) of the favicon.
const int kFavIconSize = 16;
+#if !defined(OS_LINUX)
+// GCC 4.2 complains that this function is not used, and currently
+// it's not used by any file compiled on Linux. GCC 4.3 does not complain.
+
// If the width or height is bigger than the favicon size, a new width/height
// is calculated and returned in width/height that maintains the aspect
// ratio of the supplied values.
@@ -25,5 +31,7 @@ static void calc_favicon_target_size(int* width, int* height) {
}
}
+#endif // !defined(OS_LINUX)
+
#endif // CHROME_COMMON_GFX_FAVICON_SIZE_H__