Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Chameleon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
solverstack
Chameleon
Commits
9b177ce0
Commit
9b177ce0
authored
7 years ago
by
Mathieu Faverge
Browse files
Options
Downloads
Patches
Plain Diff
Add missing const to error/warning messages
parent
14ffa8ef
No related branches found
No related tags found
1 merge request
!19
Add Out-of-Core option
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
control/auxiliary.c
+3
-3
3 additions, 3 deletions
control/auxiliary.c
control/auxiliary.h
+3
-3
3 additions, 3 deletions
control/auxiliary.h
with
6 additions
and
6 deletions
control/auxiliary.c
+
3
−
3
View file @
9b177ce0
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
* Warning message to display.
* Warning message to display.
*
*
******************************************************************************/
******************************************************************************/
void
morse_warning
(
const
char
*
func_name
,
char
*
msg_text
)
void
morse_warning
(
const
char
*
func_name
,
const
char
*
msg_text
)
{
{
MORSE_context_t
*
morse
;
MORSE_context_t
*
morse
;
...
@@ -78,7 +78,7 @@ void morse_warning(const char *func_name, char* msg_text)
...
@@ -78,7 +78,7 @@ void morse_warning(const char *func_name, char* msg_text)
* Warning message to display.
* Warning message to display.
*
*
******************************************************************************/
******************************************************************************/
void
morse_error
(
const
char
*
func_name
,
char
*
msg_text
)
void
morse_error
(
const
char
*
func_name
,
const
char
*
msg_text
)
{
{
fprintf
(
stderr
,
"MORSE ERROR: %s(): %s
\n
"
,
func_name
,
msg_text
);
fprintf
(
stderr
,
"MORSE ERROR: %s(): %s
\n
"
,
func_name
,
msg_text
);
}
}
...
@@ -96,7 +96,7 @@ void morse_error(const char *func_name, char* msg_text)
...
@@ -96,7 +96,7 @@ void morse_error(const char *func_name, char* msg_text)
* Warning message to display.
* Warning message to display.
*
*
******************************************************************************/
******************************************************************************/
void
morse_fatal_error
(
const
char
*
func_name
,
char
*
msg_text
)
void
morse_fatal_error
(
const
char
*
func_name
,
const
char
*
msg_text
)
{
{
fprintf
(
stderr
,
"MORSE FATAL ERROR: %s(): %s
\n
"
,
func_name
,
msg_text
);
fprintf
(
stderr
,
"MORSE FATAL ERROR: %s(): %s
\n
"
,
func_name
,
msg_text
);
exit
(
0
);
exit
(
0
);
...
...
This diff is collapsed.
Click to expand it.
control/auxiliary.h
+
3
−
3
View file @
9b177ce0
...
@@ -36,9 +36,9 @@ extern "C" {
...
@@ -36,9 +36,9 @@ extern "C" {
/*******************************************************************************
/*******************************************************************************
* Internal routines
* Internal routines
**/
**/
void
morse_warning
(
const
char
*
func_name
,
char
*
msg_text
);
void
morse_warning
(
const
char
*
func_name
,
const
char
*
msg_text
);
void
morse_error
(
const
char
*
func_name
,
char
*
msg_text
);
void
morse_error
(
const
char
*
func_name
,
const
char
*
msg_text
);
void
morse_fatal_error
(
const
char
*
func_name
,
char
*
msg_text
);
void
morse_fatal_error
(
const
char
*
func_name
,
const
char
*
msg_text
);
int
morse_rank
(
MORSE_context_t
*
morse
);
int
morse_rank
(
MORSE_context_t
*
morse
);
int
morse_tune
(
MORSE_enum
func
,
int
M
,
int
N
,
int
NRHS
);
int
morse_tune
(
MORSE_enum
func
,
int
M
,
int
N
,
int
NRHS
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment