somehow the -Wall got lost in the debug build - fix
authorStephan Kulow <coolo@suse.de>
Sat, 16 Feb 2008 08:24:51 +0000 (08:24 +0000)
committerStephan Kulow <coolo@suse.de>
Sat, 16 Feb 2008 08:24:51 +0000 (08:24 +0000)
build for release mode

CMakeLists.txt
src/pool.c
tools/repo_patchxml.c

index 2636346..60b8bd2 100644 (file)
@@ -99,8 +99,8 @@ FIND_PROGRAM(SWIG_EXECUTABLE
   PATHS ${SWIG_DIR} ${SWIG_DIR}/.. ${SWIG_DIR}/../../bin /usr/bin /usr/local/bin ${CMAKE_INSTALL_PREFIX}/bin
 )
 
-set ( CMAKE_C_FLAGS     "${CMAKE_C_FLAGS} -Werror" )
-set ( CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS} -g -O3 -Wall" )
+set ( CMAKE_C_FLAGS     "${CMAKE_C_FLAGS} -Werror -Wall" )
+set ( CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS} -g -O3" )
 set ( CMAKE_C_FLAGS_DEBUG     "${CMAKE_C_FLAGS} -g3 -O0" )
 
 ADD_SUBDIRECTORY(src)
index 77733c1..4105999 100644 (file)
@@ -727,9 +727,7 @@ static int
 addfileprovides_cb(void *cbdata, Solvable *s, Repodata *data, Repokey *key, KeyValue *value)
 {
   struct addfileprovides_cbdata *cbd = cbdata;
-  Pool *pool = s->repo->pool;
   int i;
-  Id id;
 
   if (data != cbd->olddata)
     {
index 246204f..b83e578 100644 (file)
@@ -145,6 +145,7 @@ struct parsedata {
   struct deltarpm delta;
 };
 
+#if 0
 static void
 append_str(struct parsedata *pd, const char *s)
 {
@@ -159,6 +160,7 @@ append_str(struct parsedata *pd, const char *s)
   strcpy(pd->tempstr + pd->ltemp, s);
   pd->ltemp += strlen(s);
 }
+#endif
 
 static Id
 makeevr_atts(Pool *pool, struct parsedata *pd, const char **atts)