]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
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 263634661d4741c6a4964d97f042d332c65a5f9b..60b8bd2f14164969d2e8c5a11646ceaea5c8a1b4 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 77733c1d02b7ddbd95b52f404fcaa480cfda324d..41059993ded86137358a7fa42e86c1b621668ca1 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 246204f14676db3b633566097fa4f4708d295e0b..b83e5786c2901fab57890f5cc6bb6f8e606ff67e 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)