summaryrefslogtreecommitdiff
path: root/libjava/classpath/gnu/java/beans/decoder/ArrayHandler.java
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2025-11-15 16:04:56 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2025-11-15 16:04:56 +0100
commit246ec58c9bc56bf454f7781c2f1b8e72bbe30394 (patch)
treeaecd1a0cec4f59018be2bd51370a6fa3c967c592 /libjava/classpath/gnu/java/beans/decoder/ArrayHandler.java
parentaaa625a51cff750b40bc98f6555adc3f3f5f297b (diff)
cobol: Fix bootstrap [PR122691]
Andrew's recent r16-5258 change broke bootstrap on x86_64-linux with cobol enabled, the error is ../../gcc/cobol/lexio.cc: In function ‘std::pair<std::__cxx11::list<replace_t>, char*> parse_replace_pairs(const char*, const char*, bool)’: ../../gcc/cobol/lexio.cc:907:76: error: ‘%.*s’ directive argument is null [-Werror=format-overflow=] 907 | dbgmsg( "%s:%d: %s: " HOST_SIZE_T_PRINT_UNSIGNED " pairs parsed from '%.*s'", | ^~~~ The problem is that some jump threading is happening now that didn't happen before and a dbgmsg call is duplicated, once with 0, NULL as the last two arguments, once with some size and pointer. The following patch makes sure we never call it with NULL pointer, even when the size is 0, to silence the warning. 2025-11-15 Jakub Jelinek <jakub@redhat.com> PR cobol/122691 * lexio.cc (parse_replace_pairs): Replace parsed.stmt.p with parsed.stmt.size() ? parsed.stmt.p : "" in the last argument to dbgmsg.
Diffstat (limited to 'libjava/classpath/gnu/java/beans/decoder/ArrayHandler.java')
0 files changed, 0 insertions, 0 deletions