Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
0cb1fac3
Commit
0cb1fac3
authored
Feb 12, 2013
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add noreturn attributes to some error reporting functions
parent
62401db4
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
10 additions
and
10 deletions
+10
-10
contrib/cube/cubescan.l
contrib/cube/cubescan.l
+1
-1
contrib/seg/segscan.l
contrib/seg/segscan.l
+1
-1
src/backend/replication/repl_scanner.l
src/backend/replication/repl_scanner.l
+1
-1
src/include/mb/pg_wchar.h
src/include/mb/pg_wchar.h
+2
-2
src/include/parser/parse_relation.h
src/include/parser/parse_relation.h
+2
-2
src/include/storage/lock.h
src/include/storage/lock.h
+1
-1
src/include/tcop/tcopprot.h
src/include/tcop/tcopprot.h
+1
-1
src/pl/plpgsql/src/pl_scanner.c
src/pl/plpgsql/src/pl_scanner.c
+1
-1
No files found.
contrib/cube/cubescan.l
View file @
0cb1fac3
...
@@ -60,7 +60,7 @@ float ({integer}|{real})([eE]{integer})?
...
@@ -60,7 +60,7 @@ float ({integer}|{real})([eE]{integer})?
%%
%%
void
void
__attribute__((noreturn))
yyerror(const char *message)
yyerror(const char *message)
{
{
if (*yytext == YY_END_OF_BUFFER_CHAR)
if (*yytext == YY_END_OF_BUFFER_CHAR)
...
...
contrib/seg/segscan.l
View file @
0cb1fac3
...
@@ -59,7 +59,7 @@ float ({integer}|{real})([eE]{integer})?
...
@@ -59,7 +59,7 @@ float ({integer}|{real})([eE]{integer})?
%%
%%
void
void
__attribute__((noreturn))
yyerror(const char *message)
yyerror(const char *message)
{
{
if (*yytext == YY_END_OF_BUFFER_CHAR)
if (*yytext == YY_END_OF_BUFFER_CHAR)
...
...
src/backend/replication/repl_scanner.l
View file @
0cb1fac3
...
@@ -152,7 +152,7 @@ addlitchar(unsigned char ychar)
...
@@ -152,7 +152,7 @@ addlitchar(unsigned char ychar)
appendStringInfoChar(&litbuf, ychar);
appendStringInfoChar(&litbuf, ychar);
}
}
void
void
__attribute__((noreturn))
yyerror(const char *message)
yyerror(const char *message)
{
{
ereport(ERROR,
ereport(ERROR,
...
...
src/include/mb/pg_wchar.h
View file @
0cb1fac3
...
@@ -516,9 +516,9 @@ extern void check_encoding_conversion_args(int src_encoding,
...
@@ -516,9 +516,9 @@ extern void check_encoding_conversion_args(int src_encoding,
int
expected_src_encoding
,
int
expected_src_encoding
,
int
expected_dest_encoding
);
int
expected_dest_encoding
);
extern
void
report_invalid_encoding
(
int
encoding
,
const
char
*
mbstr
,
int
len
);
extern
void
report_invalid_encoding
(
int
encoding
,
const
char
*
mbstr
,
int
len
)
__attribute__
((
noreturn
))
;
extern
void
report_untranslatable_char
(
int
src_encoding
,
int
dest_encoding
,
extern
void
report_untranslatable_char
(
int
src_encoding
,
int
dest_encoding
,
const
char
*
mbstr
,
int
len
);
const
char
*
mbstr
,
int
len
)
__attribute__
((
noreturn
))
;
extern
void
pg_ascii2mic
(
const
unsigned
char
*
l
,
unsigned
char
*
p
,
int
len
);
extern
void
pg_ascii2mic
(
const
unsigned
char
*
l
,
unsigned
char
*
p
,
int
len
);
extern
void
pg_mic2ascii
(
const
unsigned
char
*
mic
,
unsigned
char
*
p
,
int
len
);
extern
void
pg_mic2ascii
(
const
unsigned
char
*
mic
,
unsigned
char
*
p
,
int
len
);
...
...
src/include/parser/parse_relation.h
View file @
0cb1fac3
...
@@ -84,9 +84,9 @@ extern bool isLockedRefname(ParseState *pstate, const char *refname);
...
@@ -84,9 +84,9 @@ extern bool isLockedRefname(ParseState *pstate, const char *refname);
extern
void
addRTEtoQuery
(
ParseState
*
pstate
,
RangeTblEntry
*
rte
,
extern
void
addRTEtoQuery
(
ParseState
*
pstate
,
RangeTblEntry
*
rte
,
bool
addToJoinList
,
bool
addToJoinList
,
bool
addToRelNameSpace
,
bool
addToVarNameSpace
);
bool
addToRelNameSpace
,
bool
addToVarNameSpace
);
extern
void
errorMissingRTE
(
ParseState
*
pstate
,
RangeVar
*
relation
);
extern
void
errorMissingRTE
(
ParseState
*
pstate
,
RangeVar
*
relation
)
__attribute__
((
noreturn
))
;
extern
void
errorMissingColumn
(
ParseState
*
pstate
,
extern
void
errorMissingColumn
(
ParseState
*
pstate
,
char
*
relname
,
char
*
colname
,
int
location
);
char
*
relname
,
char
*
colname
,
int
location
)
__attribute__
((
noreturn
))
;
extern
void
expandRTE
(
RangeTblEntry
*
rte
,
int
rtindex
,
int
sublevels_up
,
extern
void
expandRTE
(
RangeTblEntry
*
rte
,
int
rtindex
,
int
sublevels_up
,
int
location
,
bool
include_dropped
,
int
location
,
bool
include_dropped
,
List
**
colnames
,
List
**
colvars
);
List
**
colnames
,
List
**
colvars
);
...
...
src/include/storage/lock.h
View file @
0cb1fac3
...
@@ -533,7 +533,7 @@ extern void lock_twophase_standby_recover(TransactionId xid, uint16 info,
...
@@ -533,7 +533,7 @@ extern void lock_twophase_standby_recover(TransactionId xid, uint16 info,
extern
DeadLockState
DeadLockCheck
(
PGPROC
*
proc
);
extern
DeadLockState
DeadLockCheck
(
PGPROC
*
proc
);
extern
PGPROC
*
GetBlockingAutoVacuumPgproc
(
void
);
extern
PGPROC
*
GetBlockingAutoVacuumPgproc
(
void
);
extern
void
DeadLockReport
(
void
);
extern
void
DeadLockReport
(
void
)
__attribute__
((
noreturn
))
;
extern
void
RememberSimpleDeadLock
(
PGPROC
*
proc1
,
extern
void
RememberSimpleDeadLock
(
PGPROC
*
proc1
,
LOCKMODE
lockmode
,
LOCKMODE
lockmode
,
LOCK
*
lock
,
LOCK
*
lock
,
...
...
src/include/tcop/tcopprot.h
View file @
0cb1fac3
...
@@ -64,7 +64,7 @@ extern void assign_max_stack_depth(int newval, void *extra);
...
@@ -64,7 +64,7 @@ extern void assign_max_stack_depth(int newval, void *extra);
extern
void
die
(
SIGNAL_ARGS
);
extern
void
die
(
SIGNAL_ARGS
);
extern
void
quickdie
(
SIGNAL_ARGS
)
__attribute__
((
noreturn
));
extern
void
quickdie
(
SIGNAL_ARGS
)
__attribute__
((
noreturn
));
extern
void
StatementCancelHandler
(
SIGNAL_ARGS
);
extern
void
StatementCancelHandler
(
SIGNAL_ARGS
);
extern
void
FloatExceptionHandler
(
SIGNAL_ARGS
);
extern
void
FloatExceptionHandler
(
SIGNAL_ARGS
)
__attribute__
((
noreturn
))
;
extern
void
RecoveryConflictInterrupt
(
ProcSignalReason
reason
);
/* called from SIGUSR1
extern
void
RecoveryConflictInterrupt
(
ProcSignalReason
reason
);
/* called from SIGUSR1
* handler */
* handler */
extern
void
prepare_for_client_read
(
void
);
extern
void
prepare_for_client_read
(
void
);
...
...
src/pl/plpgsql/src/pl_scanner.c
View file @
0cb1fac3
...
@@ -528,7 +528,7 @@ plpgsql_scanner_errposition(int location)
...
@@ -528,7 +528,7 @@ plpgsql_scanner_errposition(int location)
* Beware of using yyerror for other purposes, as the cursor position might
* Beware of using yyerror for other purposes, as the cursor position might
* be misleading!
* be misleading!
*/
*/
void
void
__attribute__
((
noreturn
))
plpgsql_yyerror
(
const
char
*
message
)
plpgsql_yyerror
(
const
char
*
message
)
{
{
char
*
yytext
=
core_yy
.
scanbuf
+
plpgsql_yylloc
;
char
*
yytext
=
core_yy
.
scanbuf
+
plpgsql_yylloc
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment