Skip to content

Conversation

@bneradt
Copy link
Contributor

@bneradt bneradt commented Feb 21, 2022

This cherry-picks two commits from master:

Fix Clang 13.0.1 compiler warnings (#8685)

This fixes a couple compiler warnings raised by Clang 13.0.1.

(cherry picked from commit 96ce993)

Fix warnings from GCC 12.0.1 (#8684)

This patch fixes warnings generated by GCC 12.0.1. The warnings involved the
use of the deprecated std::binary_function, std::unary_function, and
std::iterator interfaces. The use of these was considered more confusing than
explicitly declaring the associated types. Therefore this patch replaces the
use of these deprecated interfaces with the declaration of the associated
types.

(cherry picked from commit 0ae34d4)

This cherry-picks two commits from master:

Fix Clang 13.0.1 compiler warnings (apache#8685)

This fixes a couple compiler warnings raised by Clang 13.0.1.

(cherry picked from commit 96ce993)

Fix warnings from GCC 12.0.1 (apache#8684)

This patch fixes warnings generated by GCC 12.0.1. The warnings involved the
use of the deprecated std::binary_function, std::unary_function, and
std::iterator interfaces. The use of these was considered more confusing than
explicitly declaring the associated types. Therefore this patch replaces the
use of these deprecated interfaces with the declaration of the associated
types.

(cherry picked from commit 0ae34d4)
@bneradt bneradt added the Build work related to build configuration or environment label Feb 21, 2022
@bneradt bneradt added this to the 9.2.0 milestone Feb 21, 2022
@bneradt bneradt self-assigned this Feb 21, 2022
@bneradt
Copy link
Contributor Author

bneradt commented Feb 21, 2022

[approve ci debian]

@masaori335 masaori335 added the Backport Marked for backport for an LTS patch release label Feb 21, 2022
@zwoop zwoop merged commit 1a37ae9 into apache:9.2.x Feb 22, 2022
moonchen pushed a commit to moonchen/trafficserver that referenced this pull request Mar 17, 2022
* asf/9.2.x:
  Updated ChangeLog
  Updated ChangeLog
  Fix missing unique_lock definition. (apache#8680)
  Enables crosscompling of ATS (apache#7786)
  Fix test_QUIC unit test builds. (apache#8678) (apache#8691)
  Fix Clang 13.0.1 and GCC 12.0.1 Compiler Warnings (apache#8690)
  url_sig: fix bad cast to pointer of different type (apache#8505)
@bneradt bneradt deleted the gcc12_clang13_compiler_warning_fixes branch October 4, 2022 16:53
bneradt added a commit to bneradt/trafficserver that referenced this pull request Oct 7, 2022
This cherry-picks two commits from master:

Fix Clang 13.0.1 compiler warnings (apache#8685)

This fixes a couple compiler warnings raised by Clang 13.0.1.

(cherry picked from commit 96ce993)

Fix warnings from GCC 12.0.1 (apache#8684)

This patch fixes warnings generated by GCC 12.0.1. The warnings involved the
use of the deprecated std::binary_function, std::unary_function, and
std::iterator interfaces. The use of these was considered more confusing than
explicitly declaring the associated types. Therefore this patch replaces the
use of these deprecated interfaces with the declaration of the associated
types.

(cherry picked from commit 0ae34d4)
bneradt added a commit to bneradt/trafficserver that referenced this pull request Oct 11, 2022
This cherry-picks two commits from master:

Fix Clang 13.0.1 compiler warnings (apache#8685)

This fixes a couple compiler warnings raised by Clang 13.0.1.

(cherry picked from commit 96ce993)

Fix warnings from GCC 12.0.1 (apache#8684)

This patch fixes warnings generated by GCC 12.0.1. The warnings involved the
use of the deprecated std::binary_function, std::unary_function, and
std::iterator interfaces. The use of these was considered more confusing than
explicitly declaring the associated types. Therefore this patch replaces the
use of these deprecated interfaces with the declaration of the associated
types.

(cherry picked from commit 0ae34d4)
(cherry picked from commit 1a37ae9)
bryancall pushed a commit that referenced this pull request Oct 11, 2022
* Fix Clang 13.0.1 and GCC 12.0.1 Compiler Warnings (#8690)

This cherry-picks two commits from master:

Fix Clang 13.0.1 compiler warnings (#8685)

This fixes a couple compiler warnings raised by Clang 13.0.1.

(cherry picked from commit 96ce993)

Fix warnings from GCC 12.0.1 (#8684)

This patch fixes warnings generated by GCC 12.0.1. The warnings involved the
use of the deprecated std::binary_function, std::unary_function, and
std::iterator interfaces. The use of these was considered more confusing than
explicitly declaring the associated types. Therefore this patch replaces the
use of these deprecated interfaces with the declaration of the associated
types.

(cherry picked from commit 0ae34d4)
(cherry picked from commit 1a37ae9)

* LogFilter: fix NULL termination check (#8603)

gcc-12 generated the following warning:

proxy/logging/LogFilter.h: In function 'void wipeField(char**, char*, const char*)':
proxy/logging/LogFilter.h:477:35: error: comparing the result of pointer addition '(new_param + 1)' and NULL [-Werror=address]
  477 |       if (new_param && (new_param + 1)) {
      |                        ~~~~~~~~~~~^~~~

That is indeed a bug. `new_param + 1` will always be non-NULL even if new_param
is NULL because 1 will be added to it. The intention was to check for the
string's null terminator at the offset, which is done via a dereference.

(cherry picked from commit 9966c9b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backport Marked for backport for an LTS patch release Build work related to build configuration or environment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants