Removed all warnings, now in Werror

Change-Id: I02dbd9fef2c1b5d6aba4ea713f1e1ea305b389bf
This commit is contained in:
Felix Raimundo
2016-03-22 18:56:00 +01:00
parent d84e139954
commit 80ad6e606b
5 changed files with 3 additions and 11 deletions

View File

@@ -10,7 +10,7 @@ endif
SFLAGS += -Ilib -I.
# Flags - Building options
SFLAGS += -Wall
SFLAGS += -Wall -Werror
# Flags - Optimizations
ifeq ($(DEBUG),1)

View File

@@ -96,9 +96,6 @@ void interactive_expression_parsing() {
if (index < 0) {
index = 0;
}
for(int i(0); i<(1<<30); i++) {
asm("nop");
}
} else if (character == RIGHT_ARROW_KEY) {
if (index < max) {
index++;

View File

@@ -2,5 +2,4 @@
#include <kandinsky.h>
QUIZ_CASE(setpixel) {
2+2;
}

View File

@@ -5,15 +5,11 @@ extern "C" {
#include "horizontal_layout.h"
#include "string_layout.h"
static inline KDCoordinate max(KDCoordinate a, KDCoordinate b) {
return (a > b ? a : b);
}
HorizontalLayout::HorizontalLayout(ExpressionLayout * parent, Expression * left_expression, char symbol, Expression * right_expression) :
ExpressionLayout(parent ) {
m_children[0] = left_expression->createLayout(this);
char string[2] = {symbol, NULL};
char string[2] = {symbol, '\0'};
m_children[1] = new StringLayout(this, string, 1);
m_children[2] = right_expression->createLayout(this);

View File

@@ -37,7 +37,7 @@ QUIZ_CASE(poincare_integer_subtract) {
QUIZ_CASE(poincare_integer_multiply) {
assert(Integer(12) * Integer(34) == Integer(408));
assert(Integer(56) * Integer(0) == Integer(0));
assert(Integer(56) * Integer("0") == Integer("0"));
assert(Integer(-12) * Integer(34) == Integer(-408));
assert(Integer(-12) * Integer(-34) == Integer(408));
assert(Integer(999999) * Integer(999999) == Integer("999998000001"));