mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
Removed all warnings, now in Werror
Change-Id: I02dbd9fef2c1b5d6aba4ea713f1e1ea305b389bf
This commit is contained in:
2
Makefile
2
Makefile
@@ -10,7 +10,7 @@ endif
|
||||
SFLAGS += -Ilib -I.
|
||||
|
||||
# Flags - Building options
|
||||
SFLAGS += -Wall
|
||||
SFLAGS += -Wall -Werror
|
||||
|
||||
# Flags - Optimizations
|
||||
ifeq ($(DEBUG),1)
|
||||
|
||||
@@ -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++;
|
||||
|
||||
@@ -2,5 +2,4 @@
|
||||
#include <kandinsky.h>
|
||||
|
||||
QUIZ_CASE(setpixel) {
|
||||
2+2;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user