Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bed7fd35 authored by Marin Shalamanov's avatar Marin Shalamanov
Browse files

SF: Compile with -Wextra

Compile with -Wextra for additional conversion checks. In each file
which produces compile errors -Wextra is ignored.

Bug: 175126758
Test: m surfaceflinger && m libsurfaceflinger_unittest
Change-Id: Iec6bcc699715a99c8c65d891ab3c0481e884c728
parent 9149533a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@
// TODO(b/129481165): remove the #pragma below and fix conversion issues
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wconversion"
#pragma clang diagnostic ignored "-Wextra"

#include <chrono>
#include <condition_variable>
@@ -1844,4 +1845,4 @@ TEST_P(RenderEngineTest, testRoundedCornersCrop) {
} // namespace android

// TODO(b/129481165): remove the #pragma below and fix conversion issues
#pragma clang diagnostic pop // ignored "-Wconversion"
#pragma clang diagnostic pop // ignored "-Wconversion -Wextra"
+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@ cc_defaults {
    cflags: [
        "-Wall",
        "-Werror",
        "-Wextra",
        "-Wformat",
        "-Wthread-safety",
        "-Wunused",
+2 −1
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
// TODO(b/129481165): remove the #pragma below and fix conversion issues
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wconversion"
#pragma clang diagnostic ignored "-Wextra"

#undef LOG_TAG
#define LOG_TAG "BufferQueueLayer"
@@ -661,4 +662,4 @@ void BufferQueueLayer::ContentsChangedListener::abandon() {
} // namespace android

// TODO(b/129481165): remove the #pragma below and fix conversion issues
#pragma clang diagnostic pop // ignored "-Wconversion"
#pragma clang diagnostic pop // ignored "-Wconversion -Wextra"
+2 −1
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
// TODO(b/129481165): remove the #pragma below and fix conversion issues
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wconversion"
#pragma clang diagnostic ignored "-Wextra"

//#define LOG_NDEBUG 0
#undef LOG_TAG
@@ -870,4 +871,4 @@ uint32_t BufferStateLayer::doTransaction(uint32_t flags) {
} // namespace android

// TODO(b/129481165): remove the #pragma below and fix conversion issues
#pragma clang diagnostic pop // ignored "-Wconversion"
#pragma clang diagnostic pop // ignored "-Wconversion -Wextra"
+2 −1
Original line number Diff line number Diff line
@@ -22,11 +22,12 @@
// TODO(b/129481165): remove the #pragma below and fix conversion issues
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wconversion"
#pragma clang diagnostic ignored "-Wextra"

#include <ui/GraphicTypes.h>

// TODO(b/129481165): remove the #pragma below and fix conversion issues
#pragma clang diagnostic pop // ignored "-Wconversion"
#pragma clang diagnostic pop // ignored "-Wconversion -Wextra"

namespace android {

Loading