Mailinglist Archive: zypp-commit (171 mails)

< Previous Next >
[zypp-commit] <libzypp> SuSE-Code-11-Branch : Fix to compile with -Werror=format-security
  • From: Michael Andres <ma@xxxxxxx>
  • Date: Tue, 2 Jun 2009 12:44:18 +0200
  • Message-id: <E1MBRVp-0006Od-FF@xxxxxxxxxxxxxxxx>
ref: refs/heads/SuSE-Code-11-Branch
commit 99cd59532403b05ce1c3b63a911a829f92c001fe
Author: Michael Andres <ma@xxxxxxx>
Date: Tue Jun 2 12:36:44 2009 +0200

Fix to compile with -Werror=format-security
---
CMakeLists.txt | 4 ++--
zypp/solver/detail/SATResolver.cc | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2e3c1f0..7a411aa 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,8 +20,8 @@ MATH( EXPR LIBZYPP_AGE "${LIBZYPP_MINOR} -
${LIBZYPP_COMPATMINOR}" )
MATH( EXPR LIBZYPP_SO_FIRST "${LIBZYPP_CURRENT}-${LIBZYPP_AGE}" )
SET( VERSION "${LIBZYPP_MAJOR}.${LIBZYPP_MINOR}.${LIBZYPP_PATCH}" )

-SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -g -Wall -Woverloaded-virtual
-Wnon-virtual-dtor -Wl,-as-needed" )
-SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -g -Wall -Wl,-as-needed" )
+SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -g -Wall
-Werror=format-security -Woverloaded-virtual -Wnon-virtual-dtor -Wl,-as-needed"
)
+SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -g -Wall
-Werror=format-security -Wl,-as-needed" )
set( CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS} -O3" )
set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} -O3" )

diff --git a/zypp/solver/detail/SATResolver.cc
b/zypp/solver/detail/SATResolver.cc
index a3dd941..f0e9982 100644
--- a/zypp/solver/detail/SATResolver.cc
+++ b/zypp/solver/detail/SATResolver.cc
@@ -934,10 +934,10 @@ string SATResolver::SATprobleminfoString(Id problem,
string &detail, Id &ignoreI
ret = str::form (_("problem with installed package %s"),
solvable2str(pool, s.get()));
break;
case SOLVER_PROBLEM_JOB_RULE:
- ret = str::form (_("conflicting requests"));
+ ret = _("conflicting requests");
break;
case SOLVER_PROBLEM_RPM_RULE:
- ret = str::form (_("some dependency problem"));
+ ret = _("some dependency problem");
break;
case SOLVER_PROBLEM_JOB_NOTHING_PROVIDES_DEP:
ret = str::form (_("nothing provides requested %s"), dep2str(pool,
dep));
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages