Skip to content

Commit 1708674

Browse files
committed
enable warnings as errors, optimizations
fix warnings
1 parent 69edc3b commit 1708674

87 files changed

Lines changed: 194 additions & 290 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ LOCAL_INCLUDE_PATHS =
122122

123123
# specify the level of optimization that you desire
124124
# NONE, SOME, FULL
125-
OPTIMIZE=
125+
OPTIMIZE= FULL
126126

127127
# specify here the codes for languages you are going
128128
# to support in this application. The default "en"
@@ -143,7 +143,7 @@ DEFINES=
143143
# if unspecified default warnings will be used
144144
# NONE = supress all warnings
145145
# ALL = enable all warnings
146-
WARNINGS =
146+
WARNINGS = ALL
147147

148148
# specify whether image symbols will be created
149149
# so that stack crawls in the debugger are meaningful
@@ -156,7 +156,7 @@ SYMBOLS =
156156
DEBUGGER =
157157

158158
# specify additional compiler flags for all files
159-
COMPILER_FLAGS =
159+
COMPILER_FLAGS = -Werror
160160

161161
# specify additional linker flags
162162
LINKER_FLAGS =

addons/AddOns/AdaptiveHistogramEqualization/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ LOCAL_INCLUDE_PATHS = ${Addon-Includes}
9292

9393
# Specify the level of optimization that you want. Specify either NONE (O0),
9494
# SOME (O1), FULL (O2), or leave blank (for the default optimization level).
95-
OPTIMIZE :=
95+
OPTIMIZE := FULL
9696

9797
# Specify the codes for languages you are going to support in this
9898
# application. The default "en" one must be provided too. "make catkeys"
@@ -110,7 +110,7 @@ DEFINES =
110110

111111
# Specify the warning level. Either NONE (suppress all warnings),
112112
# ALL (enable all warnings), or leave blank (enable default warnings).
113-
WARNINGS =
113+
WARNINGS = ALL
114114

115115
# With image symbols, stack crawls in the debugger are meaningful.
116116
# If set to "TRUE", symbols will be created.
@@ -121,7 +121,7 @@ SYMBOLS :=
121121
DEBUGGER :=
122122

123123
# Specify any additional compiler flags to be used.
124-
COMPILER_FLAGS =
124+
COMPILER_FLAGS = -Werror
125125

126126
# Specify any additional linker flags to be used.
127127
LINKER_FLAGS =

addons/AddOns/AntiDitherer/AntiDitherer.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,6 @@ AntiDithererManipulator::anti_dither()
155155
if (selection != NULL && selection->IsEmpty() == false)
156156
bounds = selection->GetBoundingRect();
157157

158-
int32 width = bounds.IntegerWidth();
159-
int32 height = bounds.IntegerHeight();
160-
161158
float bounds_left = bounds.left;
162159
float bounds_right = bounds.right;
163160
float bounds_top = bounds.top;

addons/AddOns/AntiDitherer/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ LOCAL_INCLUDE_PATHS = ${Addon-Includes}
9292

9393
# Specify the level of optimization that you want. Specify either NONE (O0),
9494
# SOME (O1), FULL (O2), or leave blank (for the default optimization level).
95-
OPTIMIZE :=
95+
OPTIMIZE := FULL
9696

9797
# Specify the codes for languages you are going to support in this
9898
# application. The default "en" one must be provided too. "make catkeys"
@@ -110,7 +110,7 @@ DEFINES =
110110

111111
# Specify the warning level. Either NONE (suppress all warnings),
112112
# ALL (enable all warnings), or leave blank (enable default warnings).
113-
WARNINGS =
113+
WARNINGS = ALL
114114

115115
# With image symbols, stack crawls in the debugger are meaningful.
116116
# If set to "TRUE", symbols will be created.
@@ -121,7 +121,7 @@ SYMBOLS :=
121121
DEBUGGER :=
122122

123123
# Specify any additional compiler flags to be used.
124-
COMPILER_FLAGS =
124+
COMPILER_FLAGS = -Werror
125125

126126
# Specify any additional linker flags to be used.
127127
LINKER_FLAGS =

addons/AddOns/Blur/Blur.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,6 @@ BlurManipulator::ManipulateBitmap(
9494
return NULL;
9595
}
9696

97-
BBitmap* source_bitmap;
98-
BBitmap* target_bitmap;
99-
BBitmap* new_bitmap = NULL;
100-
10197
return original;
10298
}
10399

addons/AddOns/Blur/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ LOCAL_INCLUDE_PATHS = ${Addon-Includes}
9292

9393
# Specify the level of optimization that you want. Specify either NONE (O0),
9494
# SOME (O1), FULL (O2), or leave blank (for the default optimization level).
95-
OPTIMIZE :=
95+
OPTIMIZE := FULL
9696

9797
# Specify the codes for languages you are going to support in this
9898
# application. The default "en" one must be provided too. "make catkeys"
@@ -110,7 +110,7 @@ DEFINES =
110110

111111
# Specify the warning level. Either NONE (suppress all warnings),
112112
# ALL (enable all warnings), or leave blank (enable default warnings).
113-
WARNINGS =
113+
WARNINGS = ALL
114114

115115
# With image symbols, stack crawls in the debugger are meaningful.
116116
# If set to "TRUE", symbols will be created.
@@ -121,7 +121,7 @@ SYMBOLS :=
121121
DEBUGGER :=
122122

123123
# Specify any additional compiler flags to be used.
124-
COMPILER_FLAGS =
124+
COMPILER_FLAGS = -Werror
125125

126126
# Specify any additional linker flags to be used.
127127
LINKER_FLAGS =

addons/AddOns/Brightness/Brightness.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ BrightnessManipulator::thread_function(int32 thread_number)
212212
float missed_update = 0;
213213

214214
// Loop through all pixels in original.
215-
uint32 sum;
216215
brightness *= 3;
217216
uint8 brighness_array[256];
218217
for (int32 i = 0; i < 256; i++)

addons/AddOns/Brightness/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ LOCAL_INCLUDE_PATHS = ${Addon-Includes}
9292

9393
# Specify the level of optimization that you want. Specify either NONE (O0),
9494
# SOME (O1), FULL (O2), or leave blank (for the default optimization level).
95-
OPTIMIZE :=
95+
OPTIMIZE := FULL
9696

9797
# Specify the codes for languages you are going to support in this
9898
# application. The default "en" one must be provided too. "make catkeys"
@@ -110,7 +110,7 @@ DEFINES =
110110

111111
# Specify the warning level. Either NONE (suppress all warnings),
112112
# ALL (enable all warnings), or leave blank (enable default warnings).
113-
WARNINGS =
113+
WARNINGS = ALL
114114

115115
# With image symbols, stack crawls in the debugger are meaningful.
116116
# If set to "TRUE", symbols will be created.
@@ -121,7 +121,7 @@ SYMBOLS :=
121121
DEBUGGER :=
122122

123123
# Specify any additional compiler flags to be used.
124-
COMPILER_FLAGS =
124+
COMPILER_FLAGS = -Werror
125125

126126
# Specify any additional linker flags to be used.
127127
LINKER_FLAGS =

addons/AddOns/ColorBalance/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ LOCAL_INCLUDE_PATHS = ${Addon-Includes}
9292

9393
# Specify the level of optimization that you want. Specify either NONE (O0),
9494
# SOME (O1), FULL (O2), or leave blank (for the default optimization level).
95-
OPTIMIZE :=
95+
OPTIMIZE := FULL
9696

9797
# Specify the codes for languages you are going to support in this
9898
# application. The default "en" one must be provided too. "make catkeys"
@@ -110,7 +110,7 @@ DEFINES =
110110

111111
# Specify the warning level. Either NONE (suppress all warnings),
112112
# ALL (enable all warnings), or leave blank (enable default warnings).
113-
WARNINGS =
113+
WARNINGS = ALL
114114

115115
# With image symbols, stack crawls in the debugger are meaningful.
116116
# If set to "TRUE", symbols will be created.
@@ -121,7 +121,7 @@ SYMBOLS :=
121121
DEBUGGER :=
122122

123123
# Specify any additional compiler flags to be used.
124-
COMPILER_FLAGS =
124+
COMPILER_FLAGS = -Werror
125125

126126
# Specify any additional linker flags to be used.
127127
LINKER_FLAGS =

addons/AddOns/ColorReducer/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ LOCAL_INCLUDE_PATHS = ${Addon-Includes}
9494

9595
# Specify the level of optimization that you want. Specify either NONE (O0),
9696
# SOME (O1), FULL (O2), or leave blank (for the default optimization level).
97-
OPTIMIZE :=
97+
OPTIMIZE := FULL
9898

9999
# Specify the codes for languages you are going to support in this
100100
# application. The default "en" one must be provided too. "make catkeys"
@@ -112,7 +112,7 @@ DEFINES =
112112

113113
# Specify the warning level. Either NONE (suppress all warnings),
114114
# ALL (enable all warnings), or leave blank (enable default warnings).
115-
WARNINGS =
115+
WARNINGS = ALL
116116

117117
# With image symbols, stack crawls in the debugger are meaningful.
118118
# If set to "TRUE", symbols will be created.
@@ -123,7 +123,7 @@ SYMBOLS :=
123123
DEBUGGER :=
124124

125125
# Specify any additional compiler flags to be used.
126-
COMPILER_FLAGS =
126+
COMPILER_FLAGS = -Werror
127127

128128
# Specify any additional linker flags to be used.
129129
LINKER_FLAGS =

0 commit comments

Comments
 (0)