Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
Vivy
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Wiki
Wiki externe
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Elliu
Vivy
Validations
509274da
Valider
509274da
rédigé
1 year ago
par
Elliu
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Silence warnings: add -Wno-unsafe-buffer-usage for Clang
parent
3202d747
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
2
Masquer les modifications d'espaces
En ligne
Côte à côte
Affichage de
2 fichiers modifiés
CMakeLists.txt
+5
-0
5 ajouts, 0 suppression
CMakeLists.txt
src/Lib/Log.cc
+7
-5
7 ajouts, 5 suppressions
src/Lib/Log.cc
avec
12 ajouts
et
5 suppressions
CMakeLists.txt
+
5
−
0
Voir le fichier @
509274da
...
...
@@ -146,6 +146,11 @@ if (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
-Wno-global-constructors
-Wno-exit-time-destructors
)
if
(
${
CMAKE_CXX_COMPILER_VERSION
}
VERSION_GREATER 16
)
target_compile_options
(
Vivy PRIVATE
-Wno-unsafe-buffer-usage
)
endif
()
elseif
(
${
CMAKE_CXX_COMPILER_ID
}
STREQUAL
"GNU"
)
target_compile_options
(
Vivy PRIVATE
-Wno-subobject-linkage
# Kubat: Some proglems here, it seems they
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
src/Lib/Log.cc
+
7
−
5
Voir le fichier @
509274da
...
...
@@ -277,12 +277,14 @@ LogMessage::operator<<(const std::string_view strv) noexcept
LogMessage
&
LogMessage
::
operator
<<
(
const
char
*
str
)
noexcept
{
const
std
::
size_t
length
=
strlen
(
str
);
for
(
std
::
size_t
i
=
0
;
(
i
<
length
)
&&
(
indexInArray
<
messageBufferLength
-
1
);
++
i
,
++
indexInArray
)
{
textBuffer
[
indexInArray
]
=
str
[
i
];
if
(
str
){
const
std
::
size_t
length
=
strlen
(
str
);
for
(
std
::
size_t
i
=
0
;
(
i
<
length
)
&&
(
indexInArray
<
messageBufferLength
-
1
);
++
i
,
++
indexInArray
)
{
textBuffer
[
indexInArray
]
=
str
[
i
];
}
textBuffer
[
indexInArray
]
=
'\0'
;
}
textBuffer
[
indexInArray
]
=
'\0'
;
return
*
this
;
}
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter