Skip to content

Commit 893257d

Browse files
committed
Add -Wall to C flags
1 parent 8dae624 commit 893257d

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ set(CMAKE_PREFIX_PATH ${SymEngine_DIR} ${CMAKE_PREFIX_PATH})
77
find_package(SymEngine 0.1.0 REQUIRED CONFIG
88
PATH_SUFFIXES lib/cmake/symengine CMake/)
99
set(CMAKE_BUILD_TYPE ${SYMENGINE_BUILD_TYPE})
10-
set(CMAKE_CXX_FLAGS_RELEASE ${SYMENGINE_CXX_FLAGS_RELEASE})
11-
set(CMAKE_CXX_FLAGS_DEBUG ${SYMENGINE_CXX_FLAGS_DEBUG})
10+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
1211
include_directories(${SYMENGINE_INCLUDE_DIRS})
1312

1413
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")

ext/symengine/ruby_basic.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ VALUE cbasic_neg(VALUE self){
127127
}
128128

129129
VALUE cbasic_get_args(VALUE self) {
130-
basic_struct *this, *iterator_basic;
130+
basic_struct *this;
131131
CVecBasic *args = vecbasic_new();
132132
int size = 0;
133133

@@ -149,7 +149,7 @@ VALUE cbasic_get_args(VALUE self) {
149149
}
150150

151151
VALUE cbasic_free_symbols(VALUE self) {
152-
basic_struct *this, *iterator_basic;
152+
basic_struct *this;
153153
CSetBasic *symbols = setbasic_new();
154154
int size = 0;
155155

ext/symengine/symengine_utils.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
VALUE check_sympify(VALUE operand2, basic_struct *cbasic_operand2) {
55

66
basic_struct *temp;
7-
VALUE new_operand2;
87
VALUE a, b;
98
double f;
109
const char *c;

0 commit comments

Comments
 (0)